2021-01-07 22:18:14 +01:00
|
|
|
declare namespace Nav {
|
|
|
|
type RootStackParamList = {
|
2021-01-30 01:29:15 +01:00
|
|
|
'Screen-Tabs': undefined
|
2021-01-31 03:09:35 +01:00
|
|
|
'Screen-Actions':
|
|
|
|
| {
|
|
|
|
type: 'status'
|
|
|
|
queryKey: QueryKeyTimeline
|
2021-02-13 01:26:02 +01:00
|
|
|
rootQueryKey?: QueryKeyTimeline
|
2021-01-31 03:09:35 +01:00
|
|
|
status: Mastodon.Status
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: 'account'
|
|
|
|
account: Mastodon.Account
|
|
|
|
}
|
2021-01-30 01:29:15 +01:00
|
|
|
'Screen-Announcements': { showAll: boolean }
|
|
|
|
'Screen-Compose':
|
2021-01-07 22:18:14 +01:00
|
|
|
| {
|
2021-01-24 02:25:43 +01:00
|
|
|
type: 'edit'
|
2021-01-07 22:18:14 +01:00
|
|
|
incomingStatus: Mastodon.Status
|
2021-03-09 00:47:40 +01:00
|
|
|
replyToStatus?: Mastodon.Status
|
2021-01-14 22:53:01 +01:00
|
|
|
queryKey?: [
|
|
|
|
'Timeline',
|
|
|
|
{
|
|
|
|
page: App.Pages
|
|
|
|
hashtag?: Mastodon.Tag['name']
|
|
|
|
list?: Mastodon.List['id']
|
|
|
|
toot?: Mastodon.Status['id']
|
|
|
|
account?: Mastodon.Account['id']
|
|
|
|
}
|
|
|
|
]
|
2021-01-07 22:18:14 +01:00
|
|
|
}
|
2021-01-24 02:25:43 +01:00
|
|
|
| {
|
|
|
|
type: 'reply'
|
|
|
|
incomingStatus: Mastodon.Status
|
|
|
|
accts: Mastodon.Account['acct'][]
|
|
|
|
queryKey?: [
|
|
|
|
'Timeline',
|
|
|
|
{
|
|
|
|
page: App.Pages
|
|
|
|
hashtag?: Mastodon.Tag['name']
|
|
|
|
list?: Mastodon.List['id']
|
|
|
|
toot?: Mastodon.Status['id']
|
|
|
|
account?: Mastodon.Account['id']
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
type: 'conversation'
|
|
|
|
accts: Mastodon.Account['acct'][]
|
|
|
|
}
|
2021-01-07 22:18:14 +01:00
|
|
|
| undefined
|
2021-01-30 01:29:15 +01:00
|
|
|
'Screen-ImagesViewer': {
|
2021-02-13 12:33:51 +01:00
|
|
|
imageUrls: {
|
2021-03-06 23:42:29 +01:00
|
|
|
id: Mastodon.Attachment['id']
|
2021-02-13 12:33:51 +01:00
|
|
|
url: Mastodon.AttachmentImage['url']
|
2021-02-14 00:27:21 +01:00
|
|
|
width?: number
|
|
|
|
height?: number
|
2021-01-07 22:18:14 +01:00
|
|
|
preview_url: Mastodon.AttachmentImage['preview_url']
|
2021-01-30 01:29:15 +01:00
|
|
|
remote_url?: Mastodon.AttachmentImage['remote_url']
|
2021-02-13 12:33:51 +01:00
|
|
|
}[]
|
2021-03-06 23:42:29 +01:00
|
|
|
id: Mastodon.Attachment['id']
|
2021-01-07 22:18:14 +01:00
|
|
|
}
|
2021-01-30 01:29:15 +01:00
|
|
|
}
|
|
|
|
|
2021-01-31 03:09:35 +01:00
|
|
|
type ScreenComposeStackParamList = {
|
|
|
|
'Screen-Compose-Root': undefined
|
|
|
|
'Screen-Compose-EditAttachment': { index: number }
|
2021-02-07 00:39:11 +01:00
|
|
|
'Screen-Compose-DraftsList': { timestamp: number }
|
2021-01-31 03:09:35 +01:00
|
|
|
}
|
|
|
|
|
2021-01-30 01:29:15 +01:00
|
|
|
type ScreenTabsStackParamList = {
|
|
|
|
'Tab-Local': undefined
|
|
|
|
'Tab-Public': undefined
|
|
|
|
'Tab-Compose': undefined
|
2021-02-28 17:41:21 +01:00
|
|
|
'Tab-Notifications': undefined
|
2021-01-30 01:29:15 +01:00
|
|
|
'Tab-Me': undefined
|
|
|
|
}
|
|
|
|
|
|
|
|
type TabSharedStackParamList = {
|
|
|
|
'Tab-Shared-Account': {
|
|
|
|
account: Mastodon.Account | Mastodon.Mention
|
|
|
|
}
|
|
|
|
'Tab-Shared-Attachments': { account: Mastodon.Account }
|
|
|
|
'Tab-Shared-Hashtag': {
|
|
|
|
hashtag: Mastodon.Tag['name']
|
|
|
|
}
|
2021-03-14 00:47:55 +01:00
|
|
|
'Tab-Shared-Search': { text: string | undefined }
|
2021-01-30 01:29:15 +01:00
|
|
|
'Tab-Shared-Toot': {
|
2021-01-07 22:18:14 +01:00
|
|
|
toot: Mastodon.Status
|
2021-02-13 01:26:02 +01:00
|
|
|
rootQueryKey: any
|
2021-01-07 22:18:14 +01:00
|
|
|
}
|
2021-03-15 00:18:44 +01:00
|
|
|
'Tab-Shared-Users':
|
|
|
|
| {
|
|
|
|
reference: 'accounts'
|
|
|
|
id: Mastodon.Account['id']
|
|
|
|
type: 'following' | 'followers'
|
|
|
|
count: number
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
reference: 'statuses'
|
|
|
|
id: Mastodon.Status['id']
|
|
|
|
type: 'reblogged_by' | 'favourited_by'
|
|
|
|
count: number
|
|
|
|
}
|
2021-01-07 22:18:14 +01:00
|
|
|
}
|
|
|
|
|
2021-01-30 01:29:15 +01:00
|
|
|
type TabLocalStackParamList = {
|
|
|
|
'Tab-Local-Root': undefined
|
|
|
|
} & TabSharedStackParamList
|
|
|
|
|
|
|
|
type TabPublicStackParamList = {
|
|
|
|
'Tab-Public-Root': undefined
|
|
|
|
} & TabSharedStackParamList
|
2021-01-07 22:18:14 +01:00
|
|
|
|
2021-01-30 01:29:15 +01:00
|
|
|
type TabNotificationsStackParamList = {
|
|
|
|
'Tab-Notifications-Root': undefined
|
|
|
|
} & TabSharedStackParamList
|
2021-01-07 22:18:14 +01:00
|
|
|
|
2021-01-30 01:29:15 +01:00
|
|
|
type TabMeStackParamList = {
|
|
|
|
'Tab-Me-Root': undefined
|
|
|
|
'Tab-Me-Bookmarks': undefined
|
|
|
|
'Tab-Me-Conversations': undefined
|
|
|
|
'Tab-Me-Favourites': undefined
|
|
|
|
'Tab-Me-Lists': undefined
|
|
|
|
'Tab-Me-Lists-List': {
|
|
|
|
list: Mastodon.List['id']
|
|
|
|
title: Mastodon.List['title']
|
|
|
|
}
|
|
|
|
'Tab-Me-Settings': undefined
|
2021-03-10 10:22:53 +01:00
|
|
|
'Tab-Me-Settings-Fontsize': undefined
|
2021-02-27 16:33:54 +01:00
|
|
|
'Tab-Me-Settings-Push': undefined
|
2021-01-30 01:29:15 +01:00
|
|
|
'Tab-Me-Switch': undefined
|
|
|
|
} & TabSharedStackParamList
|
2021-01-07 22:18:14 +01:00
|
|
|
}
|