React-native-router-flux: Passing data back to parent with Actions.pop?

Created on 3 Feb 2016  路  3Comments  路  Source: aksonov/react-native-router-flux

It is easy to pass data through a push as seen in the example:
Actions.login({data:"Custom data", title:'Custom title' })
How should it be done when popping back to the parent?

Most helpful comment

Actions.pop( {refresh: {variable: value} }) will do

All 3 comments

The parent can just pass a callback function through props.

you can use Actions.refresh({data:"Custom data", title:'Custom title' }) immediately after Actions.pop() and this will do the trick. Refresh will be called on the parent

Actions.pop( {refresh: {variable: value} }) will do

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YouYII picture YouYII  路  3Comments

moaxaca picture moaxaca  路  3Comments

vinayr picture vinayr  路  3Comments

xnog picture xnog  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments