-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.tsx
56 lines (47 loc) · 998 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { ImageRequireSource } from "react-native";
export type RootStackParamList = {
Onboarding: undefined;
Authentication: undefined;
Main: undefined;
Products: undefined;
Product: { product: Product };
};
export type BottomTabParamList = {
Home: undefined;
Recipes: undefined;
Cart: undefined;
Settings: undefined;
};
export type AuthStackParamList = {
SignIn: undefined;
SignUp: undefined;
};
export interface OnboardingSlide {
label?: string;
key?: string;
}
export type AppContext = {
darkTheme: boolean;
colors: Colors;
setDarkTheme: (value: boolean) => void;
};
export interface Colors {
textPrimary: string;
textSecondary: string;
background: string;
}
export interface SvgProps {
size: number;
color?: string;
}
export interface Product {
name: string;
image: ImageRequireSource;
color: string;
price: number;
}
export interface Setting {
name: string;
Icon: ({ size, color }: SvgProps) => JSX.Element;
iconSize: number;
}