Tell us which versions you are using:
Router don't crash
Router crash on android when navigating between screens, with error:
TypeError: undefined is not a function this._children[typeof Symbol === 'function'? Symbol.iterator: '@@iterator']()')
It is maybe linked to this:
https://github.com/react-community/react-navigation/issues/1777
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
Tested a little bit more options, it really seems to be a bug inherent to the stack navigator. The tab navigator is working well...
Same here
@CarbonC I solved my problem by importing babel-polyfill, can you try this?
Yeah, i just updated the babel-react-native-preset version right now and it fixed it. Thanks!
@CarbonC Hi, I just started trying out React and having trouble with Navigation.
I got TabNavigator working, but not StackNavigator.
Can you please state which version of babel-react-native-preset you updated to fix the issue?
For reference these are my versions:
{
"name": "SimpleApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-beta.5",
"react-native": "0.49.5",
"react-navigation": "^1.0.0-beta.16"
},
"devDependencies": {
"babel-jest": "21.2.0",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0-beta.5"
},
"jest": {
"preset": "react-native"
}
}
Thanks
@sfreeman28 - your error is probably related to this issue.
@skicson Yea thanks I just saw that Issue report and looks like what I am getting. Thanks for the help
npm install --save babel-polyfill
and add
import "babel-polyfill"
to your entry file.
This work for me on Android.
Most helpful comment
and add
to your entry file.
This work for me on Android.