This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
Error: createStackNavigator()
has been moved to react-navigation-stack
.
#311
Comments
when i run
|
do a search for "createStackNavigator," and for each instance remove it and below that declaration add the following import { createStackNavigator } from 'react-navigation-stack' |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, everyone! I was built a react-native app using Ignite Andross boilerplate and i found this error after i run command
yarn start
andyarn android
in Ubuntu 18.04 terminal.So, i tried to trace the
createStackNavigator()
module, and i know why i got this error. Turns out that thecreateStackNavigator ()
module imported from wrong library. Here i show you where the fault was happened :In
ignite/DevScreens/PluginExamplesScreen.js
import { createStackNavigator, createAppContainer } from 'react-navigation'
In
ignite/DevScreens/PresentationScreen.js
import { createStackNavigator, createAppContainer } from 'react-navigation'
So i change that part to this in every module that i mentioned above :
import { createStackNavigator } from 'react-navigation-stack'
Can this error solved in boilerplate? So that ignite-andross user is not necessary to chage this part anymore.
Thank you for your attention everyone! Don't forget to wear the mask~
The text was updated successfully, but these errors were encountered: