React Native Pass properties on navigator pop

Habibi picture Habibi · Apr 6, 2015 · Viewed 21.2k times · Source

I'm using NavigatorIOS on my react native app. I want to pass some properties when navigating back to previous route.

An example case: I'm in a form page. After submitting data, I want to go back to the previous route and do something based on the submitted data

How should I do that ?

Answer

Tarrence picture Tarrence · Apr 6, 2015

Could you pass a callback func on the navigator props when you push the new route and call that with the form data before you pop to the previous route?