-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
RN Web - StackNavigator is not a function #423
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
Here's a demo repo: https://github.com/reggi/example-web-react-navigation-issue |
The second error may be due to |
Disregard I see you got an error doing just that. |
@temitope Any idea what's going on? |
Seems like the import RNW from 'react-navigation/lib/react-navigation.web.js';
console.log(RNW) { createNavigationContainer: [Getter],
StateUtils: [Getter],
addNavigationHelpers: [Getter],
NavigationActions: [Getter],
createNavigator: [Getter],
StackRouter: [Getter],
TabRouter: [Getter],
withNavigation: [Getter] } |
@reggi Ahh I am just realizing now that it is a totally different core library (in a way)...yeah if anything would be different between native and web I would assume the navigation would be as it is so different in terms of touch/click/back<->forward buttons, but I must say i dont know as I am unfamiliar with the RN4WEB .... seems like is is still in nascent stages and not yet up to support for full react-navigation features (i.e. |
Just import And if you're getting errors in transpiling, configure webpack to transpile |
After updating react-native-router-flux from 3 to 4, got this error in RN4W |
yep , i use rnrf 4, and got this error. |
can someone who would like to see this issue resolved please create a new issue with a reproducible example on https://snack.expo.io or in a github repository, with a minimal amount of superfluous code? (please don't post your entire app, just a small one to reproduce the problem). thanks! |
I'm trying to get this running on react native web.
Also what's weird, when I just run the following with
babel-node
I get this error:
When I check package.json
main
it uses thesrc
and not thelib
version, why is this?https://github.com/react-community/react-navigation/blob/master/package.json#L5
The text was updated successfully, but these errors were encountered: