weegschaal-app/App.tsx
eddy ed714af8d1 feat: add MeasurementDetailScreen, 365-day charts, and edit support
- New MeasurementDetailScreen with wijzigen/verwijderen
- WeightChart now supports 30 and 365 days
- NewMeasurementScreen now handles both create and edit
- Updated README to match current code
- Add build-toolchain documentation
- Ignore *.apk build artifacts
2026-07-14 09:14:59 +02:00

53 lines
1.7 KiB
TypeScript

import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import DashboardScreen from './src/screens/DashboardScreen'
import NewMeasurementScreen from './src/screens/NewMeasurementScreen'
import HistoryScreen from './src/screens/HistoryScreen'
import SettingsScreen from './src/screens/SettingsScreen'
import MeasurementDetailScreen from './src/screens/MeasurementDetailScreen'
import { Measurement } from './src/types'
type RootStackParamList = {
Dashboard: undefined
NewMeasurement: { measurement?: Measurement }
History: undefined
MeasurementDetail: { measurementId: string }
Settings: undefined
}
const Stack = createNativeStackNavigator<RootStackParamList>()
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Dashboard">
<Stack.Screen
name="Dashboard"
component={DashboardScreen}
options={{ title: 'Weegschaal' }}
/>
<Stack.Screen
name="NewMeasurement"
component={NewMeasurementScreen}
options={{ title: 'Nieuwe meting' }}
/>
<Stack.Screen
name="History"
component={HistoryScreen}
options={{ title: 'Historie' }}
/>
<Stack.Screen
name="MeasurementDetail"
component={MeasurementDetailScreen}
options={{ title: 'Meting' }}
/>
<Stack.Screen
name="Settings"
component={SettingsScreen}
options={{ title: 'Instellingen' }}
/>
</Stack.Navigator>
</NavigationContainer>
)
}