Following the mini-tutorial and I'm receiving a lot of warning messages from react, it's showing 7 times just on initially loading with a pretty basic config.
ExceptionsManager.js:76 Warning: You are manually calling a React.PropTypes validation function for the `initialAction` prop on `NavigationRootContainer`. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.
Properties warning is thrown on initialAction, linkingActionMap, persistenceKey, reducer, renderNavigation and onNavigate
Tell us which versions you are using:
No warnings from react
Warnings from react
index.ios.js
<Router>
<Scene key="root">
<Scene key="splash" component={Splash} title="Splash" initial={true}></Scene>
</Scene>
</Router>
splash.js
<View style={{margin: 128}}>
<Text onPress={Actions.Board}>Splash Logo</Text>
</View>
Same here to me on android
+1
Upgrade to React Native 0.31 will fix it. You can disable warning as well.
@steida: Upgrade to 0.31 will not fix it
@itinance Try update React (but should not be required), it works for me.
Unfortunately not here:
"react": "15.3.0",
"react-native": "0.31.0",
"react-native-router-flux": "^3.30.0",
I've fixed it by myself directly in the node_modules/react-native-router-flux folder and have removed all proptypes
I was able to fix this problem by keeping my react dependency locked at 15.2.1
"react": "15.2.1",
"react-native": "0.31.0",
"react-native-router-flux": "^3.30.0",
[email protected] has a peerDependency for [email protected]
https://github.com/facebook/react-native/blob/0.31-stable/package.json#L124
Once I did this the warnings went away.
Solved in version 3.35.0
still appear in v4.0.0-beta.12
The problem disappeared for me after upgrade to React 16.0.0
Most helpful comment
+1