import {DrawerNavigationProp} from '@react-navigation/drawer'; import {useNavigation} from '@react-navigation/native'; import {createStackNavigator} from '@react-navigation/stack'; import React from 'react'; import {IconButton} from 'react-native-paper'; import {DrawerParamList} from './App'; import BestList from './BestList'; import Set from './set'; import ViewBest from './ViewBest'; const Stack = createStackNavigator(); export type BestPageParams = { BestList: {}; ViewBest: { best: Set; }; }; export default function BestPage() { const navigation = useNavigation>(); return ( { navigation.setOptions({ headerLeft: () => ( ), title: 'Best', }); }, }} /> ); }