-
Notifications
You must be signed in to change notification settings - Fork 0
/
_types.tsx
61 lines (53 loc) · 1.28 KB
/
_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
57
58
59
60
61
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
/**
* Represents a set of colors used in the application.
*/
export type Colors ={
primary: string;
primary50: string;
primary100: string;
primary200: string;
primary300: string;
primary400: string;
primary0: string;
primary600: string;
primary700: string;
primary800: string;
primary900: string;
secondary: string;
secondary50: string;
secondary100: string;
secondary200: string;
secondary300: string;
secondary400: string;
secondary0: string;
secondary600: string;
secondary700: string;
secondary800: string;
secondary900: string;
accent: string;
error: string;
gray: string;
gray400: string;
gray800: string;
}
export type StringFunction = {
(input: String): void;
};
export type NumberFunction = {
(input: number): void;
};
export type HandlerEvents = {
(event: String): void;
};
export interface ListObjects extends Array<CustomObject> {}
export interface CustomObject {
id: number;
value: String;
}
export interface AppCustomProps extends NativeStackScreenProps<any,any> {
stringFunction?: StringFunction;
numberFunction?: NumberFunction;
handlerEvents?: HandlerEvents;
listObjects?: ListObjects;
}