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

Sentry mobile image

Improving mobile performance, from slow screens to app start time

Based on our experience working with thousands of mobile developer teams, we developed a mobile monitoring maturity curve.

Read more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay