0
I’m using react-native-router-flux
for routes and scenes.
I got scenes A and B on screen GET
in an API in function componentWillMount()
and display the information. On screen B I have a form and button to save and return to scene A using Actions.pop()
. I would like a new requisition to be made when I return to scene A GET
to the API to bring the new information.
I tried to use Actions.pop()
and Actions.refresh()
, I did several other tests and failed. I saw in another post a suggestion to pass the function that makes the request via props to scene B and run it before going back to scene A, but it didn’t work either. This last one seemed the best solution.
I’d like to know a way to fix that.