import type { StackScreenProps } from '@react-navigation/stack'; import type { Paths } from '@/navigation/paths'; export type RootScreenProps< S extends keyof RootStackParamList = keyof RootStackParamList, > = StackScreenProps; export type RootStackParamList = { [Paths.Example]: undefined; [Paths.Startup]: undefined; };