The application is developed on react native under ios and the following problem has arisen: It is necessary to edit the fields in your personal account. It is assumed that the user clicks on one of the fields, redirects it to the page with editing, and when you go back to the page, the changes must be accepted and the field must change. Actually, this is how the native ios interface works. But how can you track down the back button if navigation is implemented using StackNavigation?

    1 answer 1

    Found a problem solving method:

    this.props.navigation.addListener('willBlur', payload => console.log('Страница закрывается')); 

    In my case, this solution is appropriate, because the only way to leave the page is to press the back button.