I'm new in react native, i have two Scene OnceScene and TwoScene I want to Navigate from OnceScene to TwoScene and at the same time i want to pass some string or array from 1st the 2nd so for that i have written the below code
let nextRoute = {
component: TwoScene,
title: 'TwoScene',
passProps: { myProp: 'bar', searchText: 'pass data', }
};
this.props.navigator.push(nextRoute);
you can see i am passing the string in passProps but how can i acess that string in TwoScene Its seems simple but since i am new i dont have much idea.