I am looking desperately for a possibility to check if a previous screen exists in ReactNavigation.
Using this.props.navigation.goBack()
returns false
if no previous route exists, but I can not use it because if a previous route exists I get redirected.
Is there a possibility to check if I opened the app instead of navigated from another screen to the Home screen?
Thank you. I am not using Redux. It would make such stuff easier but I would like to avoid using it at the moment.
See Question&Answers more detail:os