Closed mkloar closed 6 years ago
Hi @mkloar, it's a difficult to parse through the code you posted, there seem to be some pieces missing. Could you try to replicate your issue in a Snack?
the problem is that you can't access props from navigationOptions
- see https://reactnavigation.org/docs/en/header-buttons.html and notice how to access navigation
in that context
The issue tracker is reserved for bug reports only.
I have 2 screens; 1st one is login 2nd one is Main with 2 bottom tabs (createBottomTabNavigator).
I want to navigate to 3rd screen from Main. I always get an error; undefined is not an object (evaluating this.props.navigation). My current code working only if i want to navigate to 3rd screen from some other component not primarely from Main tab in Main screen.
Current Behavior
My code in app.js
My code in Main; routes;
My code for navigate to different screen in my Main screen;
Your Environment