I am looking desperately for a possibility to check if a previous screen exists in ReactNavigation.
Using this.props.navigation.goBack() returns
As of React Navigation 5 you can use useNavigationState hook inside functional component this way:
const routesLength = useNavigationState(state => state.routes.length);
console.log('routesLength', routesLength);
If routesLength > 1 then it is not the first screen in stack
Or you can use navigation.canGoBack()