Massive/WeightPage.tsx
Brandon Presley e8ee4a253e Migrate from Drawer -> Stacks to Stack -> Drawer
This simplifies our codebase greatly by
only having a single stack navigator and
a single drawer navigator. Previously we had
a stack navigator for every main page on the drawer.
2023-10-28 15:59:25 +13:00

26 lines
634 B
TypeScript

import { createStackNavigator } from "@react-navigation/stack";
import EditWeight from "./EditWeight";
import ViewWeightGraph from "./ViewWeightGraph";
import Weight from "./weight";
import WeightList from "./WeightList";
export type WeightPageParams = {
Weights: {};
EditWeight: {
weight: Weight;
};
ViewWeightGraph: {};
};
const Stack = createStackNavigator<WeightPageParams>();
export default function WeightPage() {
return (
<Stack.Navigator
screenOptions={{ headerShown: false, animationEnabled: false }}
>
<Stack.Screen name="Weights" component={WeightList} />
</Stack.Navigator>
);
}