Answers for "typeerror undefined is not an object evaluating app.appnavigator"

0

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"
      />
);
}
Posted by: Guest on November-22-2020
0

typeerror undefined is not an object evaluating app.appnavigator

import { useNavigation } from '@react-navigation/native';

function NotificationsScreen() {
const navigation = useNavigation(); 
return(
<Button
        onPress={() => navigation.navigate('Notifications')}
        title=Go to notifications
      />
);
}
Posted by: Taylor Swift on March-10-2022

Code answers related to "typeerror undefined is not an object evaluating app.appnavigator"

Code answers related to "Javascript"

Browse Popular Code Answers by Language