Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make
ScreenProps
parametrizable in TypeScript (#6496)
This change allows for the following to be written: ```tsx const TreatmentPlanDrawerItem = createStackNavigator( { Screen: { screen: Screen, // t is of type i18next.TFunction via the type casting below. navigationOptions: ({ screenProps }) => ({ title: screenProps.t('title'), }) }, } as NavigationRouteConfigMap< NavigationStackOptions, NavigationStackProp<NavigationRoute, any>, { t: i18next.TFunction } > ); ```
- Loading branch information