Skip to content

Instantly share code, notes, and snippets.

@AllGistsEqual
Created April 18, 2021 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AllGistsEqual/6d372e8182166e3492755a17cc48aeef to your computer and use it in GitHub Desktop.
Save AllGistsEqual/6d372e8182166e3492755a17cc48aeef to your computer and use it in GitHub Desktop.
// File: src/routing/types.ts
import { StackNavigationProp } from '@react-navigation/stack'
import { MainRoutes, MainStackParamList } from './routes'
export type MainNavigationProp<
RouteName extends keyof MainStackParamList = MainRoutes
> = StackNavigationProp<MainStackParamList, RouteName>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment