-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Expected Behavior
It looks like both version 3 and 4 require react-native-gesture-handler and react-native-reanimated. However, I've been using version 3 without react-native-reanimated for a long time now (I didn't even notice the new dependency after an upgrade) without issues, is it really needed? Why? The same applies for react-native-screens.
Additionally, there seems to be some inconsistencies between the docs. https://reactnavigation.org/docs/en/stack-navigator.html says only react-native-gesture-handler and react-native-screens are needed, while the main docs (https://reactnavigation.org/docs/en/getting-started.html) say something different.
Lastly, https://reactnavigation.org/docs/en/stack-navigator.html adds another two dependencies (@react-navigation/core and react-navigation-stack). Is this in addition to react-navigation?
In short, to install react-navigation-stack we have a bunch of dependencies scattered all around the docs, with some of them not even being required but rather optional. Considering also that those third party libraries can have a significant impact on the final build size due to all the native dependencies, it would be a very good idea to write a brief description about what they are used for and what are the drawbacks of not installing them.
Your Environment
| software | version |
|---|---|
| react-navigation | 3.12.1 and 4.0 |
| react-native | 0.60.5 |