-
Hello,
but there is no hint to add this in react-navigation : enableScreens(); so my question is, If I want to use it I have to follow you readme or it's all integrated in react navigation 5? |
Beta Was this translation helpful? Give feedback.
Replies: 18 comments
-
You should follow the README if you want to use them. If you do not call the |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki Thank you very much for the answer, so using this plugin will decrease the usage memory improving the speed of the app right? Another question my code is this:
I have to use enableScreens only here at the root or I have to use it in every component of my app? |
Beta Was this translation helpful? Give feedback.
-
Yeah, it should do so, especially on Android. On iOS,
Only at the root of the project. |
Beta Was this translation helpful? Give feedback.
-
Do you have any other questions or can I close it? |
Beta Was this translation helpful? Give feedback.
-
At the moment no! thank you very much! |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki Is this currently true?
|
Beta Was this translation helpful? Give feedback.
-
It is no longer true. |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki Thanks for the answer! I already do this in my code:
But I use this:
If I read instead this: https://github.com/software-mansion/react-native-screens/tree/master/native-stack I have to do this:
is that right? So at the moment I'm not using react native screen fully? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@WoLewicki Perfect, thank you, so if I use createNativeStackNavigator what other perfomance I boost? |
Beta Was this translation helpful? Give feedback.
-
The boost comes from using platform primitives for navigation, which of course is faster than managing it only in JS. |
Beta Was this translation helpful? Give feedback.
-
I will transform this into a discussion since other people may want to look at this thread for some information about the |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki yes of course |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki summing up, what do you think is best to use? only: |
Beta Was this translation helpful? Give feedback.
-
What do you mean by not suggesting the usage of |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki I'm sorry, i'm completely miss this: https://reactnavigation.org/docs/native-stack-navigator/ Thank you! |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki Sorry to bother you again, I have one last question, I see this code: https://reactnavigation.org/docs/native-stack-navigator/#api-definition and use |
Beta Was this translation helpful? Give feedback.
-
If you want to use |
Beta Was this translation helpful? Give feedback.
What do you mean by not suggesting the usage of
createNativeStackNavigator
? It is documented in the docs and there is no information about it not being good to use: https://reactnavigation.org/docs/native-stack-navigator