forked from naviji/thankful
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
54 lines (38 loc) · 1.09 KB
/
Copy pathtypes.ts
File metadata and controls
54 lines (38 loc) · 1.09 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { StackNavigationProp } from '@react-navigation/stack';
import { RouteProp } from '@react-navigation/native';
export interface Entry {
id: number,
date: Date,
image?: Array<string>,
content: string
}
export type RootStackParamList = {
Home: undefined;
Editor: { entryId: number, backgroundColor:string, textColor:string, iconColor:string };
Wait:undefined;
};
type WaitNavigationProps = StackNavigationProp<RootStackParamList, 'Wait'>
export type WaitNavProps={
navigation:WaitNavigationProps
};
type EditorScreenNavigationProp = StackNavigationProp<
RootStackParamList,
'Editor'
>;
type EditorScreenRouteProp = RouteProp<RootStackParamList, 'Editor'>;
export type EditorProps = {
navigation: EditorScreenNavigationProp
route: EditorScreenRouteProp
};
type HomeScreenNavigationProp = StackNavigationProp<
RootStackParamList,
'Home'
>;
type HomeScreenRouteProp = RouteProp<RootStackParamList, 'Home'>;
export type HomeProps = {
navigation: HomeScreenNavigationProp
route: HomeScreenRouteProp
};
export interface IAppState{
readonly entries: Entry[];
}