-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.tsx
More file actions
28 lines (23 loc) · 781 Bytes
/
types.tsx
File metadata and controls
28 lines (23 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { BottomTabScreenProps } from "@react-navigation/bottom-tabs";
import { CompositeScreenProps } from "@react-navigation/native";
import { NativeStackScreenProps } from "@react-navigation/native-stack";
declare global {
namespace ReactNavigation {
interface AuthParamList extends AuthStackParamList {}
}
}
export type AuthStackParamList = {
register: undefined;
login: undefined;
otp: undefined;
};
export type AuthStackScreenProps<Screen extends keyof AuthStackParamList> =
NativeStackScreenProps<AuthStackParamList, Screen>;
export type RootTabParamList = {
Home: undefined;
Info: undefined;
Settings: undefined;
Profile: undefined;
};
export type RootTabScreenProps<Screen extends keyof RootTabParamList> =
BottomTabScreenProps<RootTabParamList, Screen>;