-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
92 lines (79 loc) · 3.35 KB
/
App.js
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
import React from 'react';
import global from './js/global.js';
import { createStackNavigator, createAppContainer } from "react-navigation";
import { Home } from './js/components/home/Home.js';
import { Login } from './js/components/login-register/index';
import { EarnCoins } from './js/components/earn-coins/EarnCoins.js';
import { Profile } from './js/components/profile/Profile.js';
const AppNavigator = createStackNavigator(
{
home: Home,
login: Login,
earnCoins: EarnCoins,
profile: Profile,
},
{
initialRouteName: "login",
headerMode: 'none'
});
const App = createAppContainer(AppNavigator);
export default App
//export default class App extends React.Component {
// render() {
// return <AppContainer />;
// }
//}
{/*
const App = () => (
<Router>
<Lightbox>
<Scene key="root">
<Scene key="login" component={Login} initial={true} hideNavBar />
<Scene key="home" component={TabView} hideNavBar />
<Stack key="photo" hideNavBar>
<Scene key="photo_tab" component={TabView} hideNavBar />
</Stack>
<Stack key="customize" hideNavBar>
<Scene key="customize_tab" component={TabView} hideNavBar />
</Stack>
<Stack key="earnCoins" hideNavBar>
<Scene key="earnCoins_tab" component={TabView} hideNavBar />
<Scene key="quiz" component={Quiz} hideNavBar />
<Scene key="quizQuestion" component={QuizQuestion} hideNavBar />
<Scene key="quizResult" component={QuizResult} hideNavBar />
</Stack>
<Stack key="miniGames" hideNavBar>
<Scene key="miniGames_tab" component={TabView} hideNavBar />
</Stack>
<Stack key="profile" hideNavBar>
<Scene key="profile_tab" component={TabView} hideNavBar />
</Stack>
<Scene hideNavBar>
<Tabs hideTabBar lazy>
<Stack key="photo">
<Scene key="photo_tab" component={TabView} hideNavBar />
</Stack>
<Stack key="customize">
<Scene key="customize_tab" component={TabView} hideNavBar />
</Stack>
<Stack key="earnCoins">
<Scene key="earnCoins_tab" component={TabView} hideNavBar />
<Scene key="quiz" component={Quiz} hideNavBar />
<Scene key="quizQuestion" component={QuizQuestion} hideNavBar />
<Scene key="quizResult" component={QuizResult} hideNavBar />
</Stack>
<Stack key="miniGames">
<Scene key="miniGames_tab" component={TabView} hideNavBar />
</Stack>
<Stack key="profile">
<Scene key="profile_tab" component={TabView} hideNavBar />
</Stack>
</Tabs>
</Scene>
</Scene>
<Scene key="medalPopup" component={MedalPopup} />
</Lightbox>
</Router >
)
export default App
*/ }