@rocali/expo-ts-rest-template
Version:
Expo project template with TypeScript, eslint, prettier, react-navigation, storybook, jest and examples for a quick start.
25 lines (20 loc) • 554 B
TypeScript
import { NavigatorScreenParams } from '@react-navigation/native';
export type RootStackParamList = {
Launch: undefined;
Login: undefined;
MainTab: NavigatorScreenParams<MainTabParamList>;
Base: undefined;
};
export type CharactersStackParamList = {
Characters: undefined;
Character: {
id: number;
};
};
export type ProfileStackParamList = {
Profile: undefined;
};
export type MainTabParamList = {
CharactersStack: NavigatorScreenParams<CharactersStackParamList>;
ProfileStack: NavigatorScreenParams<ProfileStackParamList>;
};