Tell us which versions you are using:
Scene config
<Scene key="modal" component={Modal} >
<Scene key="root" tabs={true}>
<Scene key="pageOne" component={PageOne}/>
<Scene key="PageTwo" component={Drawer} open={false}>
<Scene key="main" tabs={true}>
<Scene key="home" component={Home}>
</Scene>
</Scene>
</Scene>
</Scene>
PageOne.js (onPress handler)
Actions.drawer({ session: 'some value' })
PageTwo.js (in render)
console.log(this.props.session) // null
Returns null
I can provide more code if needed.
Unsure if this is the ideal way to do this but:
Actions.drawer()
Actions.refresh({ key: 'drawer', session: Session })
Works. Do certain Actions not allow the passing of props or is something more complex happening under the hood?
Version 3.35.0 does not support passing props to tab routes.
npm install --save-dev https://github.com/aksonov/react-native-router-flux.git
EDIT:
npm install --save https://github.com/aksonov/react-native-router-flux.git
Saved me a headache!