React-native-router-flux: SceneView warning when upgrading to RN 0.45

Created on 7 Jun 2017  路  11Comments  路  Source: aksonov/react-native-router-flux

Version

  • react-native-router-flux v3.39.1
  • react-native v0.45.0

Expected behaviour

No warnings.

Actual behaviour

Warning encountered for every change of scene:

Warning: SceneView has a method called shouldComponentUpdate().
shouldComponentUpdate should not be used when extending React.PureComponent.
Please extend React.Component if shouldComponentUpdate is used.

Steps to reproduce

  1. $ git clone [email protected]:aksonov/react-native-router-flux.git
  2. $ cd react-native-router-flux/Example
  3. $ react-native-git-upgrade
  4. $ npm install
  5. $ react-native run-[android | ios] (I also have to start server manually npm run start -- --root .)

screenshot_20170607-160056

I do not encounter this warning with a clean install of RN 0.45 without RNRF (aka react-native init test; cd test; npm install; react-native run-[android | ios])

Most helpful comment

All 11 comments

I have the same problem , and how to resolve it ?

is it support react 16 ?
ilkkzm@ilkkzm-Inspiron-7460:~/Projects/Own/MiniDai$ npm install
npm WARN [email protected] requires a peer of react@^0.13.0 || ^0.14.0 || ^15.0.0 but none was installed.

"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.45.0",
"react-native-router-flux": "^3.39.1"

ok , thank you . @Justkant

Same question. Thank you!

If I publish my app in Play Store, this warning appear in consumers' phones?

@cronos88 no. Warnings are disabled by default in release mode.

i just included react native flux router into my project today, but there has already been a commit and merge on the issue. how do i get the latest code to fix this issue?

@j8jacobs you would probably need to replace this with master branch from github https://github.com/aksonov/react-native-router-flux/blob/master/package.json#L41

same issue

is a release with the fix is expected soon?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

booboothefool picture booboothefool  路  3Comments

YouYII picture YouYII  路  3Comments

VictorK1902 picture VictorK1902  路  3Comments

maphongba008 picture maphongba008  路  3Comments

fgrs picture fgrs  路  3Comments