How can I pass data from sceneA to sceneB with Navigator in React Native?
I\'m using this to go to sceneB:
1.While passing the data from scene A to scene B, you must specify in the navigator tag that you are also passing the data with route. ex.
if(route.name == 'home') {
return
}
send data from scene A
ex.this.props.navigator.push({name:'sceneB',data:{name:this.state.name},});
in scene B access data like this
ex. this.props.data.name
and you get the data from scene A to scene B