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 EditSet from './EditSet'; import Set from './set'; import SetList from './SetList'; const Stack = createStackNavigator(); export type HomePageParams = { Sets: {}; EditSet: { set: Set; workouts?: string[]; }; }; export default function HomePage() { const navigation = useNavigation>(); return ( { navigation.setOptions({ headerLeft: () => ( ), title: 'Home', }); }, }} /> ); }