import { NavigationContainer, NavigatorScreenParams } from '@react-navigation/native'; import { createNativeStackNavigator } from '@react-navigation/native-stack'; import { StatusBar } from 'expo-status-bar'; import { QueryClient, QueryClientProvider } from 'react-query'; import Chapter from './src/pages/chapter'; import Comic from './src/pages/comic'; import ComicProfile from './src/pages/comicprofile'; import Home from './src/pages/home'; import { ComicProviderKey } from './src/provider'; import { NonLocalProviderKey } from './src/provider/local'; import Save from './src/pages/save'; import ComicList, { TabParamList } from './src/pages/comiclist'; const Stack = createNativeStackNavigator(); const queryClient = new QueryClient(); export type RootStackParamList = { OldHome: undefined; Home: NavigatorScreenParams; ComicProfile: { provider: ComicProviderKey; comicId: string; }; Chapter: { provider: ComicProviderKey; comicId: string; chapterId: string; }; Page: { provider: ComicProviderKey; comicId: string; pageId: string; }; Save: { provider: NonLocalProviderKey; comicId: string; }; } export default function App() { return ( ); }