Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197import { type NavigationState, type NavigatorScreenParams, type PartialState,} from '@react-navigation/native'
import {type SearchFilters} from '#/screens/Search/searchParams'import {type VideoFeedSourceContext} from '#/screens/VideoFeed/types'
export type {NativeStackScreenProps} from '@react-navigation/native-stack'export type { NavigationProp, RootNavigationProp, RootNavigatorParams,} from '#/lib/routes/navigation'
/** * The advanced-search filter params are owned by searchParams.ts (the param * model, serialization, and helpers all live there). Re-export the type so the * route params stay in sync with it automatically rather than being a second * hand-maintained copy. */export type SearchFilterParams = SearchFilters
export type SearchParams = { q?: string tab?: 'user' | 'profile' | 'feed' | 'latest'} & SearchFilterParams
export type ModerationInboxTab = 'reports' | 'account'
export type CommonNavigatorParams = { NotFound: undefined AuthCallback: undefined Atmosphere: undefined Lists: undefined Event: {name: string; rkey: string} Moderation: undefined ModerationInbox: {tab?: ModerationInboxTab} ModerationInboxSettings: undefined ModerationInboxReportDetails: {moderationService: string; id: string} ModerationInboxNoticeDetails: {moderationService: string; subject: string} ModerationModlists: undefined ModerationMutedAccounts: undefined ModerationBlockedAccounts: undefined ModerationInteractionSettings: undefined ModerationVerificationSettings: undefined Settings: undefined Profile: {name: string; hideBackButton?: boolean; tab?: string} ProfileFollowers: {name: string} ProfileFollows: {name: string} ProfileKnownFollowers: {name: string} ProfileSearch: {name: string} & SearchParams ProfileList: {name: string; rkey: string} PostThread: {name: string; rkey: string; collection?: string; space?: string} PostLikedBy: {name: string; rkey: string; collection?: string; space?: string} PostRepostedBy: { name: string rkey: string collection?: string space?: string } PostQuotes: {name: string; rkey: string; collection?: string; space?: string} CustomFeed: { name: string rkey: string feedCacheKey?: 'discover' | 'explore' | undefined resolvedFeed?: string } CustomFeedLikedBy: {name: string; rkey: string} ProfileLabelerLikedBy: {name: string} Debug: undefined DebugMod: undefined Ios26CrashRegression: undefined SharedPreferencesTester: undefined Log: undefined Support: undefined SupportReturn: {session_id?: string} PrivacyPolicy: undefined TermsOfService: undefined CommunityGuidelines: undefined CopyrightPolicy: undefined LanguageSettings: undefined AppPasswords: undefined SavedFeeds: undefined PreferencesFollowingFeed: undefined PreferencesThreads: undefined PreferencesExternalEmbeds: undefined AccessibilitySettings: undefined AIPreferencesSettings: undefined AppearanceSettings: undefined BetaFeaturesSettings: undefined AccountSettings: undefined AutomationLabelSettings: undefined PrivacyAndSecuritySettings: undefined ActivityPrivacySettings: undefined ContentAndMediaSettings: undefined NotificationSettings: undefined ActivityNotificationSettings: undefined InterestsSettings: undefined AboutSettings: undefined Midterms: undefined AppIconSettings: undefined FindContactsSettings: undefined InviteScanner: undefined Search: SearchParams Hashtag: {tag: string; author?: string} Topic: {topic: string} MessagesConversation: {conversation: string; embed?: string; accept?: true} MessagesConversationSettings: {conversation: string} MessagesJoinRequests: {conversation: string} MessagesSettings: undefined MessagesInbox: undefined NotificationsActivityList: {posts: string} LegacyNotificationSettings: undefined Feeds: undefined Start: {name: string; rkey: string} StarterPack: {name: string; rkey: string; new?: boolean} StarterPackShort: {code: string} StarterPackWizard: { fromDialog?: boolean targetDid?: string onSuccess?: () => void } StarterPackEdit: {rkey?: string} VideoFeed: VideoFeedSourceContext StreamplaceWatch: {actor: string} Bookmarks: undefined FindContactsFlow: undefined}
export type BottomTabNavigatorParams = { HomeTab: NavigatorScreenParams<HomeTabNavigatorParams> | undefined SearchTab: NavigatorScreenParams<SearchTabNavigatorParams> | undefined NotificationsTab: NavigatorScreenParams<NotificationsTabNavigatorParams> | undefined MyProfileTab: NavigatorScreenParams<MyProfileTabNavigatorParams> | undefined MessagesTab: NavigatorScreenParams<MessagesTabNavigatorParams> | undefined AtmosphereTab: NavigatorScreenParams<CommonNavigatorParams> | undefined FeedsTab: NavigatorScreenParams<CommonNavigatorParams> | undefined ListsTab: NavigatorScreenParams<CommonNavigatorParams> | undefined BookmarksTab: NavigatorScreenParams<CommonNavigatorParams> | undefined SettingsTab: NavigatorScreenParams<CommonNavigatorParams> | undefined}
export type HomeTabNavigatorParams = CommonNavigatorParams & { Home: undefined}
export type SearchTabNavigatorParams = CommonNavigatorParams & { Search: SearchParams}
export type NotificationsTabNavigatorParams = CommonNavigatorParams & { Notifications: undefined}
export type MyProfileTabNavigatorParams = CommonNavigatorParams & { MyProfile: {name: 'me'; hideBackButton: true}}
export type MessagesTabNavigatorParams = CommonNavigatorParams & { Messages: | { pushToConversation?: string pushToNewGroupChat?: boolean animation?: 'push' | 'pop' } | undefined}
export type FlatNavigatorParams = CommonNavigatorParams & { Home: undefined Search: SearchParams Feeds: undefined Notifications: undefined Messages: MessagesTabNavigatorParams['Messages']}
/** A checked leaf destination for navigation from outside a screen stack. */export type CommonNavigationDestination = { [Name in keyof CommonNavigatorParams]: { name: Name params: CommonNavigatorParams[Name] }}[keyof CommonNavigatorParams]
export type State = NavigationState | Omit<PartialState<NavigationState>, 'stale'>
export type RouteParams = Record<string, string>export type MatchResult = {params: RouteParams}export type Route = { match: (path: string) => MatchResult | undefined build: (params?: Record<string, unknown>) => string}