undefined is not an object (evaluating '_this.props.navigation.navigator') in app.js react native error solution code example
Example: typeerror undefined is not an object (evaluating 'navigation.navigate')
import { useNavigation } from '@react-navigation/native';
function NotificationsScreen() {
const navigation = useNavigation();
return(
<Button
onPress={() => navigation.navigate('Notifications')}
title="Go to notifications"
/>
);
}