24 lines
546 B
TypeScript
24 lines
546 B
TypeScript
import { createStackNavigator } from "@react-navigation/stack";
|
|
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>
|
|
);
|
|
}
|