-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
35 lines (31 loc) · 1.44 KB
/
App.js
File metadata and controls
35 lines (31 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import React from 'react';
import { useFonts, RobotoMono_400Regular, RobotoMono_700Bold } from '@expo-google-fonts/roboto-mono';
import { ActivityIndicator, View } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from './screens/HomeScreen';
import DadosAppScreen from './screens/DadosAppScreen';
import GameManager from './game/GameManager';
const Stack = createNativeStackNavigator();
export default function App() {
let [fontsLoaded] = useFonts({
RobotoMono_400Regular,
RobotoMono_700Bold,
});
if (!fontsLoaded) {
return (
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#000' }}>
<ActivityIndicator size="large" color="#39FF14" />
</View>
);
}
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={HomeScreen} options={{ headerShown: false, title: '< SYSTEM_ROOT />' }} />
<Stack.Screen name="IniciarSistema" component={GameManager} options={{ headerShown: false, title: '< EXEC_GAME />' }} />
<Stack.Screen name="DadosApp" component={DadosAppScreen} options={{ headerShown: false, title: '< APP_DATA />' }} />
</Stack.Navigator>
</NavigationContainer>
);
}