Skip to content
Discussion options

You must be logged in to vote

rn-screens detaches native views of screens that are not currently visible. If I understand correctly, your question is about the React state. rn-screens do not change anything about it so all of the changes there are still applied and there is no optimization of it. If you want to prevent the React state changes, you can use react-freeze. See https://github.com/software-mansion/react-native-screens#experimental-support-for-react-freeze on how to use it with react-native-screens. Does it answer you question?

Replies: 1 comment 2 replies

Comment options

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

@WoLewicki
Comment options

Answer selected by enestatli
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