React-native-router-flux: React Warnings

Created on 3 Aug 2016  路  10Comments  路  Source: aksonov/react-native-router-flux

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

Version

Tell us which versions you are using:

  • react-native-router-flux v3.32.0
  • react-native v0.30.0

Expected behaviour

No warnings from react

Actual behaviour

Warnings from react

Steps to reproduce

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>

Most helpful comment

+1

All 10 comments

Same here to me on android

  • react-native-router-flux v3.32.0
  • react-native v0.30.0

+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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

kirankalyan5 picture kirankalyan5  路  3Comments

xnog picture xnog  路  3Comments

sarovin picture sarovin  路  3Comments

vinayr picture vinayr  路  3Comments