Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
2.3 kB · 83 lines
TypeScript
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384import type { NavigatorScreenParams } from "@react-navigation/native";import type { NativeStackScreenProps } from "@react-navigation/native-stack";
export type SettingsStackParamList = { MainSettings: undefined; AboutCategory: undefined; AccountCategory: undefined; StreamingCategory: undefined; WebhooksSettings: undefined; BackupSettings: undefined; PrivacyCategory: undefined; NotificationsCategory: undefined; DanmuCategory: undefined; AdvancedCategory: undefined; LanguagesCategory: undefined; MultistreamCategory: undefined; RecommendationsSettings: undefined; KeyManagement: undefined; BadgeSelection: undefined; BadgeIssuer: undefined; BrandingAdmin: undefined;};
export type HomeStackParamList = { HomeMain: undefined; About: undefined; Download: undefined; LiveDashboard: undefined; Login: undefined; Multi: { config: string }; Support: undefined; Upload: undefined; UploadVideo: { tid: string }; UploadDrafts: undefined; UploadLivestreams: undefined; UploadVideos: undefined;};
// Videos tab navigatorexport type VideosStackParamList = { VideoList: undefined; UserVideoList: { did: string };};
// Main tab navigatorexport type TabParamList = { HomeTab: NavigatorScreenParams<HomeStackParamList>; VideosTab: NavigatorScreenParams<VideosStackParamList>; GoLiveTab: undefined; SettingsTab: NavigatorScreenParams<SettingsStackParamList>;};
// Root stack navigatorexport type RootStackParamList = { MainTabs: NavigatorScreenParams<TabParamList>;
Stream: { user: string }; MobileGoLive: undefined;
AppReturn: { scheme: string }; PopoutChat: { user: string }; Embed: { user: string }; InfoWidgetEmbed: undefined; DanmuOBS: { user: string }; PopoutStreamMonitor: undefined; PopoutInfoWidget: undefined; PopoutMultistream: undefined; PopoutLivestream: undefined; Video: undefined; Vod: { user: string; tid: string }; VodEmbed: { user: string; tid: string };};
// Helper type for screen propsexport type RootStackScreenProps<T extends keyof RootStackParamList> = NativeStackScreenProps<RootStackParamList, T>;
// Global namespace augmentation for React Navigationdeclare global { namespace ReactNavigation { interface RootParamList extends RootStackParamList {} }}