Closed theabhishek2511 closed 1 year ago
@theabhishek2511 thanks for the bug report! Would you be able to contribute a PR perhaps?
@frankcalise I have created a PR (#2458) but the CI seems to be failing. I'm fairly new to RN (and ts in general) so I can't tell what's causing this. Could you please have a look?
Merged, thanks for the contribution!
Describe the bug
The screen generator template seems to be generating the wrong ScreenProps interface.
Currently it generates a
NativeStackScreenProps<AppStackScreenProps<T>>
. This evaluates toNativeStackScreenProps<NativeStackScreenProps<AppStackParamList, T>>
, which causes TypeScript to throw all sorts of tantrums no matter what route names I pass.Looking through in discussions and following #2383, changing the generated ScreenProps interface to
AppStackScreenProps<T>
fixes the problem.Ignite version
8.8.2
Additional info