react-native-navbar icon indicating copy to clipboard operation
react-native-navbar copied to clipboard

passing property to second scene android

Open jigarrdesai opened this issue 8 years ago • 1 comments

this.props.navigator.push({ id: 'MainPage', name: 'test', passProps: {userInfo: res} });

i am setting property userInfo but passProps not working and i am not able to get property parameter in second scene

jigarrdesai avatar Apr 15 '16 15:04 jigarrdesai

Hi, @jigarrdesai !

I had the same question previously, but managed to find the answer in this thread: https://github.com/react-native-community/react-native-navbar/issues/15#issuecomment-157646226

Basically, you can access it on the next scene using this.props.route.passProps.userInfo

Hope it helps.

SiriusDely avatar Dec 18 '16 07:12 SiriusDely