-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
52 lines (41 loc) · 1.3 KB
/
App.js
File metadata and controls
52 lines (41 loc) · 1.3 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import React from 'react';
import type {Node} from 'react';
import {
StyleSheet,
useColorScheme,
SafeAreaView,
} from 'react-native';
import {
Colors,
} from 'react-native/Libraries/NewAppScreen';
import Home from './views/Home';
import Play from './views/Play';
import EGame from './views/EGame';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import EPlay from './views/EPlay';
import CreateUser from './views/CreateUser';
const Stack = createNativeStackNavigator();
const App: () => Node = () => {
const isDarkMode = useColorScheme() === 'dark';
const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{headerShown: false}}
>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Play" component={Play} />
<Stack.Screen name="EPlay" component={EPlay} />
<Stack.Screen name="EGame" component={EGame} />
<Stack.Screen name="IPlay" component={Play} />
<Stack.Screen name="CreateUser" component={CreateUser} />
</Stack.Navigator>
</NavigationContainer>
);
};
const styles = StyleSheet.create({
});
export default App;