react-native Property 'replace' does not exist on type 'NavigationProp<ParamListBase, string, Readonly code example
Example: react-native Property 'replace' does not exist on type 'NavigationProp whatever by Gifted Goshawk on May 19 2021 Donate Comment
import { StackNavigationProp } from '@react-navigation/stack';
import { useNavigation } from '@react-navigation/native';
const navigation = useNavigation<StackNavigationProp<any>>();
navigation.replace('Screen name');