79163160

Date: 2024-11-06 15:05:31
Score: 0.5
Natty:
Report link

The type inference comes from const Stack = createStackNavigator();.

I suspect you need to pass your RootStackParamList type in like so: const Stack = createStackNavigator<RootStackParamList>();

Please see the docs, they are quite helpful: https://reactnavigation.org/docs/typescript/

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mark Atkinson