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

react native typescript 'string' is not assignable to parameter of type 'never.' in useNavigation

$
0
0

[I keep getting the error that says 'string' is not assignable to parameter of type 'never' in react native typescript and I don't know why. Can someone help me fix this bug.

Thank you in advance.]1

code snippet :

const loadReport = (id: string) => {    setPostId(id);    navigation.navigate('Report', {postId: id});}

I get an underline under 'Report'.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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