I'm using react-native-router-flux
for routes and scenes.
I have scenes A and B, on screen I make a request GET
in an API in the componentWillMount()
function and display the information. On screen B I have a form and a button to save and return to scene A using Actions.pop()
. I would like, on returning to scene A, to make a new request GET
to the API to bring the new information.
I tried to use Actions.pop()
and Actions.refresh()
, I did several other tests and I did not succeed. I saw in another post a suggestion to pass the function that makes the request via props to scene B and execute it before returning to scene A, but also did not work. The latter seemed to me the best solution.
I would like to know a way to resolve this.