Answers for "react-native Property 'replace' does not exist on type 'NavigationProp<ParamListBase, string, Readonly"

0

react-native Property 'replace' does not exist on type 'NavigationProp<ParamListBase, string, Readonly

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

const navigation = useNavigation<StackNavigationProp<any>>();


navigation.replace('Screen name');
Posted by: Guest on May-19-2021

Code answers related to "react-native Property 'replace' does not exist on type 'NavigationProp<ParamListBase, string, Readonly"

Browse Popular Code Answers by Language