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

'createDrawerNavigator' is crashing the app #11878

Open
2 of 11 tasks
salis010 opened this issue Mar 8, 2024 · 1 comment
Open
2 of 11 tasks

'createDrawerNavigator' is crashing the app #11878

salis010 opened this issue Mar 8, 2024 · 1 comment

Comments

@salis010
Copy link

salis010 commented Mar 8, 2024

Current behavior

Calling the below line crashes the app:

const Drawer = createDrawerNavigator()

The app was created with Expo and I am trying to run it on Expo Go from an Android device.

The below errors appear in terminal, and the app does not even load:
errors

Expected behavior

The expected behavior is to be able to use createDrawerNavigator without the app crashing.

Reproduction

https://github.com/salis010/drawer-test

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

  • [] I've removed the packages that I don't use
package version
@react-navigation/native "^6.1.14"
@react-navigation/drawer "^6.6.11"
react-native "0.73.4"
expo "~50.0.11"
node "v20.11.1"
npm or yarn npm "v10.2.4"
@sheikx1221
Copy link

facing the same issue in windows/android

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

No branches or pull requests

2 participants