-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
45 lines (40 loc) · 885 Bytes
/
types.ts
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
import { LinearGradientProps } from "expo-linear-gradient";
import { RelativePathString } from "expo-router";
import { ImageProps } from "react-native";
export interface PersonType {
created_at: string;
gender: number;
id: string;
initials: string;
name: string;
person_id: string;
relation_type: string;
relation_type_id: string;
surname: string;
dob?: string;
is_active?: boolean;
life?: number;
marital_status?: number;
notes?: string;
user_id?: string;
}
export interface FamilyType {
data: PersonType[];
title: string;
}
export interface SectionType {
data: PersonType[];
id: string;
section: string;
title: string;
}
export type ColorsType = {
[key: string]: string;
};
export interface Result {
id: number;
title: string;
colors: LinearGradientProps["colors"];
image: ImageProps["source"];
route: RelativePathString;
}