Tell us which versions you are using:
how can refresh parent component when child component is poped
I tried to use onBack func in a scene
but i got an error like

My code is like
<Scene key="msg" clone hideTabBar title="" component={Msg}
onBack = { () => Actions.pop({refresh: true})}
/>
the API mentions refresh: {propstoset} but these props are not set or present in the componentWillReceiveProps(nextProps) function version 3.36.0
More or less related: we are also encountering issues with refreshing a page, is there anyone that knows if there is any lifecycle that is triggered when landing on a page again?
Situation: we want an action to be executed every time a user views the page, no matter if it is via redirect or via push or pop or replace... we can't seem to find out how to do this. Any suggestions?
@JeroenNelen Yes, i just tring to find a callback like android onResume/onPause
Or ,if there's any other solution to do this..
I assume "msg" is not the scene you want to refresh. Have you tried Actions.pop({refresh: {key: "SCENE_KEY_TO_REFRESH"})} ???
Any luck with this issue? Also looking for a solution.
Any luck with this issue? Also looking for a solution.
+1.
+1
You can render the Component by using redux and its reducers, change the state of one of the parameters and it automatically renders the component after we pop out of the child screen.