React-native-router-flux: RNRF v3.26.1 / RN 0.26.1 Error: "navigationState and onNavigate property should be not null"

Created on 22 May 2016  路  3Comments  路  Source: aksonov/react-native-router-flux

Version

  • react-native-router-flux v3.26.1
  • react-native v0.26.1

Got error on launch :
screen shot 2016-05-22 at 10 43 25

@joenoon Code must be updated for 0.26 ?

Most helpful comment

It's just a guess. If you use side menu, you will have to add onNavigate prop to DefaultRenderer. In side menu integration example is same issue - there is not onNavigate prop.

<DefaultRenderer navigationState={children[0]} />

vs.

<DefaultRenderer navigationState={children[0]} onNavigate={this.props.onNavigate} />

And also, if you use DefaultRenderer somewhere, you should pass onNavigate prop now

All 3 comments

It's just a guess. If you use side menu, you will have to add onNavigate prop to DefaultRenderer. In side menu integration example is same issue - there is not onNavigate prop.

<DefaultRenderer navigationState={children[0]} />

vs.

<DefaultRenderer navigationState={children[0]} onNavigate={this.props.onNavigate} />

And also, if you use DefaultRenderer somewhere, you should pass onNavigate prop now

Good guess, it fixes the error, thanks !

Now my custom navbar doesn't appear anymore and the side menu is not accessible

It's ok, I had just to remove hideNavBar={true}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willmcclellan picture willmcclellan  路  3Comments

sreejithr picture sreejithr  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments

xnog picture xnog  路  3Comments

luco picture luco  路  3Comments