Initial Expo MVP
This commit is contained in:
29
App.tsx
Normal file
29
App.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user