Skip to content
Discussion options

You must be logged in to vote

You should be able to measure performance with standard tools for this, such as memory usage, CPU usage, battery usage etc. Since native-stack detaches previous native views when navigating forward, the gains should be mostly visible while having many heavy screens pushed inside the navigator. With native-stack, (or with js stack with react-native-screens enabled), it should consume much less memory when navigating forward. I attached a simple example below. You should see difference in memory usage when switching the options and navigating forward. It would probably be even more visible when changing buttons to some images, which consume much memory on native side.

import * as React from '…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WoLewicki
Comment options

@WoLewicki
Comment options

Answer selected by tboba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants