-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: renamed createStackNavigator to createNativeStackNavigator #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✔️ Deploy Preview for react-navigation-docs ready! 🔨 Explore the source changes: 9b51a2a 🔍 Inspect the deploy log: https://app.netlify.com/sites/react-navigation-docs/deploys/613a75815576a800080a6435 😎 Browse the preview: https://deploy-preview-1053--react-navigation-docs.netlify.app |
d68ed50
to
7696e46
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only import and stack initialization need to be changed. Thanks 🙌
|
||
const Stack = createStackNavigator(); | ||
const NativeStack = createNativeStackNavigator(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const NativeStack = createNativeStackNavigator(); | |
const Stack = createNativeStackNavigator(); |
native-stack is also a stack, no need to overdo this.
|
||
function MyStack() { | ||
function MyNativeStack() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function MyNativeStack() { | |
function MyStack() { |
|
||
function MyStack() { | ||
return ( | ||
<Stack.Navigator | ||
<NativeStack.Navigator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to change here and also Screens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
Documentation was refering to `createStackNavigator` function instead of `createNativeStackNavigator`
Documentation was refering to
createStackNavigator
function instead ofcreateNativeStackNavigator