Brandon Presley
e8ee4a253e
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.
26 lines
634 B
TypeScript
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>
|
|
);
|
|
}
|