Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6213

Property 'pop' does not exist on type 'NavigationProp'

$
0
0

How can we use the pop() function in React Native Navigation?

onPress={() => navigation.pop('Home')}>

gives me a TypeScript error that

Property 'pop' does not exist on type 'NavigationProp<Record<string, object | undefined>, string, NavigationState, {}, {}>'.ts(2339


Viewing all articles
Browse latest Browse all 6213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>