-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.props.navigationState is undefined #2000
Comments
You may use props.navigation.state instead. I will add navigationState for backward compartibility soon. |
In this path the field |
Do you mean this.props.navigationState.children? Yes, it is replaced to this.props.navigation.routes. Will add it to 'Breaking changes'. |
Could you check |
It is weird, let me check. |
There is no 'children' because RNRF Router interpret 'main' as leaf (because 'component' is defined). So V4 accepts If you want to use custom tab container you have to use custom Navigator and pass it as |
To be honest, I am not sure what the last comment means. Can you elaborate more @aksonov ? |
Yeah, even I don't understand the meaning behind the last comment @aksonov . Can you please explain it? |
Original code was taken from v3 and applied to v4 that is wrong. Starting from v4 'container' scenes (like tabs, stack, etc.) cannot have 'component' prop but 'contentComponent' instead |
Stuck on the same place. I think we have to extend somehow children[0] by data from Actions._state, but have no idea how can we do that trick. Looks like we still need some kind of DefaultRenderer component to render it together |
Strange this is still not fixed |
@Dgs-asohail4 RNRF has now its own drawer. It's easy to use and manage. You might need to refactor your routing file though. And this.props.navigationState is now available as this.props.navigation.state. |
I have updated with RN-v0.59.8 and I am also not getting children key, can you please tell me how we can achieve that ? |
https://github.com/aksonov/react-native-router-flux/blob/master/docs/OTHER_INFO.md#drawer-side-menu-integration
Inside
MainScreen#render()
this.props.navigationState is undefined, why?rnrf: 4.0.0-beta.6
The text was updated successfully, but these errors were encountered: