I'm trying to figure out a way to call a function in my previous screen if it is revisited.
- Currently on Screen 1
- Click a Button (Goes to Screen 2)
- Click Back (Goes Back to Screen 1)
this.props.navigation.dispatch(NavigationActions.back())
- Function on Screen 1 is called. I don't need to pass any parameters or anything I just need to know when the screen has been called again. I'd rather not clear the entire state and reset it if I don't have t.