React-navigation version is incompatible with imports
Gguigre opened this issue · comments
Guillaume Gremillet commented
The problem
During setup, "react-navigation": "^4.0.0"
is installed and used in the RootNavigator.tsx
with import { createStackNavigator } from 'react-navigation';
However, since react-navigation 4.x, createStackNavigator
was moved to another package : react-navigation-stack
-> https://reactnavigation.org/docs/en/stack-navigator.html
Step to reproduce
rnmake an app
Suggestions
- Add react-navigation-stack to the packages
- Modify template to import createStackNavigator from react-navigation-stack