-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.tsx
32 lines (26 loc) · 933 Bytes
/
types.tsx
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
29
30
31
32
import {WoWItem} from "./interfaces/Item";
import {StackScreenProps} from "@react-navigation/stack";
export type RootStackParamList = {
Root: undefined;
Login: undefined;
NotFound: undefined;
};
export type BottomTabParamList = {
TabOne: undefined;
Messages: undefined;
Profile: undefined;
};
export type TabOneParamList = {
SearchScreen: undefined;
ItemScreen: { item: WoWItem, selectedRealm: string, selectedFaction: string };
CreateAlarmScreen: { item: WoWItem, selectedRealm: string, selectedFaction: string };
};
export type MessagesTabParamList = {
MessagesTabScreen: undefined;
};
export type ProfileTabParamList = {
ProfileTabScreen: undefined;
};
export type SearchScreenProp = StackScreenProps<TabOneParamList, 'SearchScreen'>
export type ItemScreenProp = StackScreenProps<TabOneParamList, 'ItemScreen'>
export type CreateAlarmScreenProp = StackScreenProps<TabOneParamList, 'CreateAlarmScreen'>