38 lines
1.2 KiB
TypeScript
38 lines
1.2 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'
|
|
|
|
const Stack = createNativeStackNavigator()
|
|
|
|
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="Settings"
|
|
component={SettingsScreen}
|
|
options={{ title: 'Instellingen' }}
|
|
/>
|
|
</Stack.Navigator>
|
|
</NavigationContainer>
|
|
)
|
|
}
|