mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-19 15:52:03 +00:00
This update introduces support for addon IDs in various components, including CatalogSection, ContinueWatchingSection, and MetadataScreen, allowing for enhanced metadata fetching. The CatalogService now includes methods for retrieving both basic and enhanced content details based on the specified addon. Additionally, improvements to the loading process in HomeScreen ensure a more efficient catalog loading experience. These changes enhance user experience by providing richer content details and smoother navigation.
59 lines
No EOL
1.2 KiB
TypeScript
59 lines
No EOL
1.2 KiB
TypeScript
import { NavigatorScreenParams } from '@react-navigation/native';
|
|
|
|
// Define the screens and their parameters
|
|
export type RootStackParamList = {
|
|
MainTabs: NavigatorScreenParams<MainTabParamList>;
|
|
Metadata: {
|
|
id: string;
|
|
type: string;
|
|
addonId?: string;
|
|
};
|
|
Streams: {
|
|
id: string;
|
|
type: string;
|
|
episodeId?: string;
|
|
};
|
|
Player: {
|
|
id: string;
|
|
type: string;
|
|
title?: string;
|
|
poster?: string;
|
|
stream: string;
|
|
headers?: {
|
|
Referer?: string;
|
|
'User-Agent'?: string;
|
|
Origin?: string;
|
|
};
|
|
subtitles?: Array<{
|
|
url: string;
|
|
lang: string;
|
|
}>;
|
|
imdbId?: string;
|
|
};
|
|
Catalog: {
|
|
addonId?: string;
|
|
type: string;
|
|
id: string;
|
|
name?: string;
|
|
genreFilter?: string;
|
|
};
|
|
Addons: undefined;
|
|
Search: undefined;
|
|
CatalogSettings: undefined;
|
|
ShowRatings: { showId: number };
|
|
};
|
|
|
|
export type MainTabParamList = {
|
|
Home: undefined;
|
|
Discover: undefined;
|
|
Library: undefined;
|
|
Addons: undefined;
|
|
Settings: undefined;
|
|
};
|
|
|
|
// Declare custom types for the navigation hook
|
|
declare global {
|
|
namespace ReactNavigation {
|
|
interface RootParamList extends RootStackParamList {}
|
|
}
|
|
}
|