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

luco picture luco  路  3Comments

willmcclellan picture willmcclellan  路  3Comments

rafaelcorreiapoli picture rafaelcorreiapoli  路  3Comments

sylvainbaronnet picture sylvainbaronnet  路  3Comments

xnog picture xnog  路  3Comments