DEV Community

AHMED HAFDI
AHMED HAFDI

Posted on

navigation.navigate("somescreen") show errors with typescript and react-native

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 :
navigation.navigate("page_2")} />

solution :

Top comments (1)

Collapse
 
hafdiahmed profile image
AHMED HAFDI

solution