bamlab / react-native-make

A collection of everyday React Native CLI tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React-navigation version is incompatible with imports

Gguigre opened this issue · comments

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