Bluesky app fork with some witchin' additions 馃挮
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 172 lines 5.6 kB view raw
1import {type NavigationState, type PartialState} from '@react-navigation/native' 2import {type NativeStackNavigationProp} from '@react-navigation/native-stack' 3 4import {type VideoFeedSourceContext} from '#/screens/VideoFeed/types' 5 6export type {NativeStackScreenProps} from '@react-navigation/native-stack' 7 8export type CommonNavigatorParams = { 9 NotFound: undefined 10 AuthCallback: undefined 11 Lists: undefined 12 Moderation: undefined 13 ModerationModlists: undefined 14 ModerationMutedAccounts: undefined 15 ModerationBlockedAccounts: undefined 16 ModerationInteractionSettings: undefined 17 ModerationVerificationSettings: undefined 18 Settings: undefined 19 Profile: {name: string; hideBackButton?: boolean} 20 ProfileFollowers: {name: string} 21 ProfileFollows: {name: string} 22 ProfileKnownFollowers: {name: string} 23 ProfileSearch: {name: string; q?: string} 24 ProfileList: {name: string; rkey: string} 25 PostThread: {name: string; rkey: string} 26 PostLikedBy: {name: string; rkey: string} 27 PostRepostedBy: {name: string; rkey: string} 28 PostQuotes: {name: string; rkey: string} 29 ProfileFeed: { 30 name: string 31 rkey: string 32 feedCacheKey?: 'discover' | 'explore' | undefined 33 } 34 ProfileFeedLikedBy: {name: string; rkey: string} 35 ProfileLabelerLikedBy: {name: string} 36 Debug: undefined 37 DebugMod: undefined 38 SharedPreferencesTester: undefined 39 Log: undefined 40 Support: undefined 41 PrivacyPolicy: undefined 42 TermsOfService: undefined 43 CommunityGuidelines: undefined 44 CopyrightPolicy: undefined 45 LanguageSettings: undefined 46 AppPasswords: undefined 47 SavedFeeds: undefined 48 PreferencesFollowingFeed: undefined 49 PreferencesThreads: undefined 50 PreferencesExternalEmbeds: undefined 51 AccessibilitySettings: undefined 52 AppearanceSettings: undefined 53 AppearanceColorThemeSettings: undefined 54 RunesSettings: undefined 55 RunesMenusSettings: undefined 56 RunesBadgesSettings: undefined 57 RunesImpressionsSettings: undefined 58 RunesUsabilitySettings: undefined 59 RunesDisplaySettings: undefined 60 RunesInfrastructureSettings: undefined 61 RunesExtraSettings: undefined 62 RunesSettingsSyncSettings: undefined 63 AccountSettings: undefined 64 AutomationLabelSettings: undefined 65 PetLabelSettings: undefined 66 PrivacyAndSecuritySettings: undefined 67 ActivityPrivacySettings: undefined 68 ContentAndMediaSettings: undefined 69 NotificationSettings: undefined 70 ReplyNotificationSettings: undefined 71 MentionNotificationSettings: undefined 72 QuoteNotificationSettings: undefined 73 LikeNotificationSettings: undefined 74 RepostNotificationSettings: undefined 75 NewFollowerNotificationSettings: undefined 76 LikesOnRepostsNotificationSettings: undefined 77 RepostsOnRepostsNotificationSettings: undefined 78 ActivityNotificationSettings: undefined 79 MiscellaneousNotificationSettings: undefined 80 InterestsSettings: undefined 81 AboutSettings: undefined 82 AppIconSettings: undefined 83 FindContactsSettings: undefined 84 Search: {q?: string; tab?: 'user' | 'profile' | 'feed'} 85 Hashtag: {tag: string; author?: string} 86 Topic: {topic: string} 87 MessagesConversation: {conversation: string; embed?: string; accept?: true} 88 MessagesConversationSettings: {conversation: string} 89 MessagesSettings: undefined 90 MessagesInbox: undefined 91 NotificationsActivityList: {posts: string} 92 LegacyNotificationSettings: undefined 93 Feeds: undefined 94 Start: {name: string; rkey: string} 95 StarterPack: {name: string; rkey: string; new?: boolean} 96 StarterPackShort: {code: string} 97 StarterPackWizard: { 98 fromDialog?: boolean 99 targetDid?: string 100 onSuccess?: () => void 101 } 102 StarterPackEdit: {rkey?: string} 103 VideoFeed: VideoFeedSourceContext 104 Bookmarks: undefined 105 FindContactsFlow: undefined 106} 107 108export type BottomTabNavigatorParams = CommonNavigatorParams & { 109 HomeTab: undefined 110 SearchTab: undefined 111 NotificationsTab: undefined 112 MyProfileTab: undefined 113 MessagesTab: undefined 114} 115 116export type HomeTabNavigatorParams = CommonNavigatorParams & { 117 Home: undefined 118} 119 120export type SearchTabNavigatorParams = CommonNavigatorParams & { 121 Search: {q?: string; tab?: 'user' | 'profile' | 'feed'} 122} 123 124export type NotificationsTabNavigatorParams = CommonNavigatorParams & { 125 Notifications: undefined 126} 127 128export type MyProfileTabNavigatorParams = CommonNavigatorParams & { 129 MyProfile: {name: 'me'; hideBackButton: true} 130} 131 132export type MessagesTabNavigatorParams = CommonNavigatorParams & { 133 Messages: {pushToConversation?: string; animation?: 'push' | 'pop'} 134} 135 136export type FlatNavigatorParams = CommonNavigatorParams & { 137 Home: undefined 138 Search: {q?: string; tab?: 'user' | 'profile' | 'feed'} 139 Feeds: undefined 140 Notifications: undefined 141 Messages: {pushToConversation?: string; animation?: 'push' | 'pop'} 142} 143 144export type AllNavigatorParams = CommonNavigatorParams & { 145 HomeTab: undefined 146 Home: undefined 147 SearchTab: undefined 148 Search: {q?: string; tab?: 'user' | 'profile' | 'feed'} 149 Feeds: undefined 150 NotificationsTab: undefined 151 Notifications: undefined 152 MyProfileTab: undefined 153 MessagesTab: undefined 154 Messages: {animation?: 'push' | 'pop'} 155} 156 157// NOTE 158// this isn't strictly correct but it should be close enough 159// a TS wizard might be able to get this 100% 160// -prf 161export type NavigationProp = NativeStackNavigationProp<AllNavigatorParams> 162 163export type State = 164 | NavigationState 165 | Omit<PartialState<NavigationState>, 'stale'> 166 167export type RouteParams = Record<string, string> 168export type MatchResult = {params: RouteParams} 169export type Route = { 170 match: (path: string) => MatchResult | undefined 171 build: (params?: Record<string, any>) => string 172}