138
rated 0 times
[
141]
[
3]
/ answers: 1 / hits: 61702
/ 8 Years ago, mon, october 17, 2016, 12:00:00
I am using react-native with react-native-navigation. I would like to reload data when a component is shown. The component is shown when a user clicks on a tab navigation button.
Should I use react life cycle events or is there something in react-native-navigation that can trigger a function when a user navigates back to a component?
I am using redux, I am not sure if that could be used to help?
This issue refers to onDisplay
which seems like what I am looking for. However I can't find any official documentation about it - https://github.com/wix/react-native-navigation/issues/130
More From » react-native