I am looking desperately for a possibility to check if a previous screen exists in ReactNavigation.
Using this.props.navigation.goBack() returns
this.props.navigation.goBack()
There is an easier way:
if(this.props.navigation.isFirstRouteInParent()) { //a previous screen does not exist } else { //a previous screen does exist }