Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

type for navigation 'replace' function

$
0
0

My navigationStack looks somewhat like this. For now, I am using the type anyfor 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;};

Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>