Search code examples
react-nativereact-native-router-flux

How to update back(previous) screen in react-native by react-native-router -flux


I am using react-native-router-flux in my application.

-I am using a parameter at my first screen and then i navigate to second screen.

-On the second screen i am updating that parameter which was used at my first screen.

-I want it to be updated when i navigate back to that screen (first screen).

How can i implement this functionality.

Thank You


Solution

  • I Solved this Issue without using Redux.

    Put the api calling statement of Screen First in a method(on First Screen) and passed it to second screen. On the second screen i called this method inside componentWillUnmount(). Its updating my first screen as i will be going back from screen second.