-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
74 lines (69 loc) · 1.54 KB
/
index.d.ts
File metadata and controls
74 lines (69 loc) · 1.54 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
//import { Dispatch, SetStateAction } from "react";
interface typeTooggle{
authState:{
accessToken: any,
refreshToken: any,
authenticated: any,
},
setAuthState:Dispatch<SetStateAction<boolean>>,
getAccessToken:()=>any,
logout:()=>void,
theme:string,
toggleTheme:(newTheme?: "light" | "dark" )=>void
}
type registerformdatatype = {
email: string;
phone: string;
username: string;
password: string;
confirmPassword?: string;
};
type loginformdatatype = {
emailPnone: string;
password: string;
};
//stack type Tab
type TabStackPramList={
tab1:undefined,
tab2:undefined,
tab3:undefined,
tab4:undefined,
}
//stack type
type logoutStackPramList={
login:undefined,
register:undefined,
}
//stack type
type LoginStackPramList={
Home:undefined,
About:undefined,
}
//Drawer type
type DorwarStackPramList = {
Home: undefined,
Profile: undefined,
Room: undefined,
Article: undefined,
Transaction: undefined,
Advance: undefined,
Expense: undefined,
SeasonVehicle: undefined,
CropBuyer: undefined,
Village: undefined,
OwnerVsAgent: undefined,
Employee: undefined,
Leave: undefined,
Report: undefined,
ContactUs: undefined,
};
type RenderDrawerItemProps = {
label: string;
iconName: string;
colorIndex?: number;
iconSize?: number;
navigation: { navigate: (arg0: string) => void };
navigateTo?: keyof DorwarStackPramList;
active?:string;
setActive?:Dispatch<SetStateAction<string>>;
};