Skip to content
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

Creating a navigator don't make take an argument.May be you are trying to use React Navigation 4 Api with react navigation 5.. #6637

Closed
ShakeelAhmadDev opened this issue Feb 6, 2020 · 10 comments

Comments

@ShakeelAhmadDev
Copy link

No description provided.

@satya164
Copy link
Member

satya164 commented Feb 6, 2020

What the error says

@satya164 satya164 closed this as completed Feb 6, 2020
@zac-09
Copy link

zac-09 commented Feb 7, 2020

I'm also having a similar issue with creating bottom tabs

@satya164 satya164 transferred this issue from react-navigation/navigation-ex Feb 7, 2020
@satya164 satya164 transferred this issue from react-navigation/react-navigation.github.io Feb 7, 2020
@MZabih
Copy link

MZabih commented Feb 12, 2020

Simulator Screen Shot - iPhone 8 Plus - 2020-02-12 at 11 32 51

This is the error I am seeing, however i am using

    "@react-navigation/native": "^5.0.2",
    "@react-navigation/stack": "^5.0.0",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-gesture-handler": "^1.5.6",
    "react-native-safe-area-context": "^0.7.2",
    "react-native-screens": "^2.0.0-beta.2",
    "react-navigation": "^4.1.1"

Please suggest where i am doing mistake.
Thanks in advance

@MZabih
Copy link

MZabih commented Feb 12, 2020

I have resolved this issue by replacing @react-navigation/stack with react-navigation-stack

@support999
Copy link

"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.5.1",
"@react-navigation/stack": "^5.6.0",
"react": "16.11.0",
"react-native": "0.62.2",
"react-native-gesture-handler": "^1.6.1",
"react-native-reanimated": "^1.9.0",
"react-native-safe-area-context": "^3.0.6",
"react-native-screens": "^2.9.0"
},
I am also having the same problem , please help me to solve it .

@artr-vnk
Copy link

Hello, dear programmers!
I had the same problem and I resolved it. And now I wanna give you my code. I hope my code helps you!

npm install react-navigation@^4.1.1

expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context
@react-native-community/masked-view

npm install react-navigation-stack

"dependencies": {
"@react-native-community/masked-view": "0.1.10",
"expo": "~38.0.1",
"expo-font": "^8.2.1",
"expo-status-bar": "^1.0.0",
"react": "~16.11.0",
"react-dom": "~16.11.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-38.0.0.tar.gz",
"react-native-gesture-handler": "~1.6.0",
"react-native-reanimated": "~1.9.0",
"react-native-safe-area-context": "3.0.2",
"react-native-screens": "~2.9.0",
"react-native-web": "~0.11.7",
"react-navigation": "^4.1.1",
"react-navigation-stack": "^2.8.2"
},

@Madiha86
Copy link

Madiha86 commented Jul 7, 2021

same issue i have faced .....please suggest me

@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro.

@anuragipankaj
Copy link

SAME ISSUE HERE :(

@vinaciotm
Copy link

instead of :

const HomeTabs = createBottomTabNavigator({
  Day: DayScreen,
  Days: DaysScreen,
});

use this:

const HomeTabs = createBottomTabNavigator();
const Home = () => (
  <HomeTabs.Navigator>
    <HomeTabs.Screen name="Day" component={DayScreen} />
    <HomeTabs.Screen name="Days" component={DaysScreen} />
  </HomeTabs.Navigator>
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants