XuqmGroup-RNChatDemo/src/navigation/types.ts

25 行
717 B
TypeScript

export type AuthStackParams = {
Login: undefined
Register: undefined
ResetPassword: undefined
}
export type MainTabParams = {
ConversationList: undefined
Contacts: undefined
Profile: undefined
}
export type RootStackParams = {
Main: undefined
SingleChat: { targetId: string; targetName: string; targetAvatar?: string }
GroupChat: { groupId: string; groupName: string }
UserSearch: { addToGroupId?: string } | undefined
GroupList: undefined
CreateGroup: undefined
GroupMembers: { groupId: string; groupName: string }
GroupSettings: { groupId: string; groupName: string; isAdmin: boolean }
EditProfile: undefined
MessageSearch: { targetId?: string; chatType?: 'SINGLE' | 'GROUP' }
}