Brandon Presley
dc5434991a
Got up to the point where i'm find/replacing the old names with new names, and I got confused about the purpose of this feature.
28 lines
693 B
TypeScript
28 lines
693 B
TypeScript
import { createStackNavigator } from "@react-navigation/stack";
|
|
import EditWorkout from "./EditWorkout";
|
|
import GymSet from "./gym-set";
|
|
import WorkoutList from "./WorkoutList";
|
|
|
|
export type WorkoutsPageParams = {
|
|
WorkoutList: {};
|
|
EditWorkout: {
|
|
gymSet: GymSet;
|
|
};
|
|
EditWorkouts: {
|
|
names: string[];
|
|
};
|
|
};
|
|
|
|
const Stack = createStackNavigator<WorkoutsPageParams>();
|
|
|
|
export default function WorkoutsPage() {
|
|
return (
|
|
<Stack.Navigator
|
|
screenOptions={{ headerShown: false, animationEnabled: false }}
|
|
>
|
|
<Stack.Screen name="WorkoutList" component={WorkoutList} />
|
|
<Stack.Screen name="EditWorkout" component={EditWorkout} />
|
|
</Stack.Navigator>
|
|
);
|
|
}
|