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

navigation.navigate("page_2")} />

$
0
0

Argument of type 'string' is not assignable to parameter of type '{ key: string; params?: never; merge?: boolean; } | { name: never; key?: string; params: never; merge?: boolean; }'.ts(2345)

that happens always when we cant to navigate to anther screen with typescript in react-native an help ?example of code :

<Button text="go to page 1" onPress={()=>navigation.navigate("page_2")} />

enter image description here


Viewing all articles
Browse latest Browse all 6287

Trending Articles