My navigationStack looks somewhat like this. For now, I am using the type any
for my route (in replace). What's the correct type I should be using?
const NavigationStack = createNativeStackNavigator<LoginStackParamList>();export type LoginStackParamList = { PasswordLogin: undefined | { login: boolean }; Login: undefined; replace: (route: any) => void;};