-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.tsx
47 lines (40 loc) · 791 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
/**
* Learn more about using TypeScript with React Navigation:
* https://reactnavigation.org/docs/typescript/
*/
export type RootStackParamList = {
Root: undefined;
NotFound: undefined;
ChatRoom: undefined;
Contacts: undefined
};
export type MainTabParamList = {
Chats: undefined;
ImportantMessages: undefined;
ImportantContacts: undefined
};
export type User = {
id: String;
name: String;
imageUri: String;
status: String;
}
export type Message = {
id: String;
content: String;
createdAt: String;
user: User;
chatRooID: String;
}
export type ChatRoom = {
id: String;
users: User[];
lastMessageID: String;
lastMessage: Message;
}
export type ChatListItemProps = {
chatRoom: ChatRoom;
}
export type ContactListItemProps = {
user: User;
}