-
Notifications
You must be signed in to change notification settings - Fork 1.8k
React native web crashes with react-navigation #1224
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
Comments
This is an issue for react-navigation and react-native-gesture-handler (reaching into RN internals is not safe). Also the alpha releases are not stable |
Thanks for nothing. |
There's nothing to fix on this side. React Navigation doesn't even support the stack navigator on web yet. https://reactnavigation.org/docs/en/web-support.html |
React navigation however works for me in a an Expo project. And having RNW without the commonly used navigators is kinda pointless. |
Check software-mansion/react-native-gesture-handler#406 And add RNW runs with navigators on my side now |
@zamponotiropita I tried your method, now I ended up with this error:
|
@AbhishekNairOfficial that PR is merged in the meantime. Use the npm version |
The problem
How to reproduce
With "react-navigation": "3.0.9"
simply use createStackNavigator, for example like this:
Simplified test case: https://codesandbox.io/s/l9vmp6241m
Steps to reproduce:
Actual behavior
Application crashes with the following error
Expected behavior
Application does not crash and a navigator is displayed
Environment (include versions). Did this work in previous versions?
The text was updated successfully, but these errors were encountered: