Using react-native-drawer ( https://github.com/root-two/react-native-drawer ) in my index.ios.js, I have the following set up and trying to pass \'navigator\' reference into con
This is how it should be done. You save the navigator reference form renderScene method define a getter method, pass the method to the component you want.
class practice extends Component {
...
renderScene(route, navigator){
this._navigator = navigator
}
configureScene(route, routeStack){
...
}
getNav = () => {
return this._navigator
}
render() {
return (
}
...
>
this.renderScene(route, navigator)}
style={styles.container}
navigationBar={
}
/>
);
}
}