30 lines
1.2 KiB
TypeScript
30 lines
1.2 KiB
TypeScript
import { NavigationContainer } from '@react-navigation/native';
|
|
import { createNativeStackNavigator } from '@react-navigation/native-stack';
|
|
import { StatusBar } from 'expo-status-bar';
|
|
import { HomeScreen } from './src/screens/HomeScreen';
|
|
import { SettingsScreen } from './src/screens/SettingsScreen';
|
|
import { LevelScreen } from './src/screens/LevelScreen';
|
|
import { RootStackParamList } from './src/types/navigation';
|
|
|
|
const Stack = createNativeStackNavigator<RootStackParamList>();
|
|
|
|
export default function App() {
|
|
return (
|
|
<NavigationContainer>
|
|
<StatusBar style="light" />
|
|
<Stack.Navigator
|
|
screenOptions={{
|
|
headerStyle: { backgroundColor: '#111827' },
|
|
headerTintColor: '#f8fafc',
|
|
headerTitleStyle: { fontWeight: '800' },
|
|
contentStyle: { backgroundColor: '#0f172a' },
|
|
}}
|
|
>
|
|
<Stack.Screen name="Home" component={HomeScreen} options={{ title: 'Handwerker Wasserwaage' }} />
|
|
<Stack.Screen name="Level" component={LevelScreen} options={{ title: 'Digitale Wasserwaage' }} />
|
|
<Stack.Screen name="Settings" component={SettingsScreen} options={{ title: 'Einstellungen' }} />
|
|
</Stack.Navigator>
|
|
</NavigationContainer>
|
|
);
|
|
}
|