feat: initial project scaffold with Watch companion app
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
import { createNativeStackNavigator } from "@react-navigation/native-stack";
|
||||
import { HistoryStackParamList } from "./types";
|
||||
import { HistoryScreen } from "../features/history/screens/HistoryScreen";
|
||||
import { SessionDetailScreen } from "../features/history/screens/SessionDetailScreen";
|
||||
import { StatsScreen } from "../features/history/screens/StatsScreen";
|
||||
|
||||
const Stack = createNativeStackNavigator<HistoryStackParamList>();
|
||||
|
||||
export function HistoryNavigator() {
|
||||
return (
|
||||
<Stack.Navigator
|
||||
screenOptions={{
|
||||
headerStyle: { backgroundColor: "#0ea5e9" },
|
||||
headerTintColor: "#fff",
|
||||
headerTitleStyle: { fontWeight: "bold" },
|
||||
}}
|
||||
>
|
||||
<Stack.Screen
|
||||
name="HistoryList"
|
||||
component={HistoryScreen}
|
||||
options={{ title: "History" }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="SessionDetail"
|
||||
component={SessionDetailScreen}
|
||||
options={{ title: "Session Detail" }}
|
||||
/>
|
||||
<Stack.Screen
|
||||
name="Stats"
|
||||
component={StatsScreen}
|
||||
options={{ title: "Statistics" }}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user