-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
113 lines (108 loc) · 3.32 KB
/
App.js
File metadata and controls
113 lines (108 loc) · 3.32 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import React, { useEffect } from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import SplashScreen from "react-native-splash-screen";
// Contents
import Start from "./src/screens/StartScreen";
import Story from "./src/screens/StoryScreen";
import Game from "./src/screens/GameScreen";
// Screens
import Explore from "./src/screens/ExploreScreen";
import SettingScreen from "./src/screens/Settings/SettingScreen";
// Story
import StoryLoading from "./src/components/Story/StoryLoading";
import StoryMain from "./src/components/Story/StoryMain";
import StoryOne from "./src/components/Story/StoryOne";
import Practice from "./src/components/Story/Practice";
// Game
import SpellingGame from "./src/components/Game/SpellingGame";
import GameMain from "./src/components/Game/GameMain";
import SpellingGameContainer from "./src/components/Game/SpellingGameContainer";
//Tabs
import NavTab from "./src/screens/NavTabs";
const MainStack = createStackNavigator();
const App = () => {
useEffect(() => {
setTimeout(() => {
SplashScreen.hide();
}, 1000);
}, []);
return (
<NavigationContainer>
<MainStack.Navigator
initialRouteName={"Home"}
headerMode="none"
screenOptions={{
headerShown: false,
}}
>
<MainStack.Screen
name="Start"
component={Start}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="NavTab"
component={NavTab}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="Story"
component={Story}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="Game"
component={Game}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="Explore"
component={Explore}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="SettingScreen"
component={SettingScreen}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="StoryMain"
component={StoryMain}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="StoryLoading"
component={StoryLoading}
options={{ headerShown: false, tabBarVisible: false }}
/>
<MainStack.Screen
name="Story1"
component={StoryOne}
options={{ headerShown: false, tabBarVisible: false }}
/>
<MainStack.Screen
name="Practice"
component={Practice}
options={{ headerShown: false, tabBarVisible: false }}
/>
<MainStack.Screen
name="GameMain"
component={GameMain}
options={{ headerShown: false }}
/>
<MainStack.Screen
name="SpellingGameContainer"
component={SpellingGameContainer}
options={{ headerShown: true, title: "냠냠 맛있는 모음게임" }}
/>
<MainStack.Screen
name="SpellingGame"
component={SpellingGame}
options={{ headerShown: true, title: "냠냠 맛있는 모음게임" }}
/>
</MainStack.Navigator>
</NavigationContainer>
);
};
export default App;