This repository was archived by the owner on May 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRoutes.tsx
More file actions
45 lines (38 loc) · 2.95 KB
/
Copy pathRoutes.tsx
File metadata and controls
45 lines (38 loc) · 2.95 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
import { Router, Scene } from 'react-native-router-flux';
import React from 'react';
import CharacterConstructor from './components/HeroConstructer/HeroConstucter';
import RegistrationMenu from './components/RegistrationMenu/RegistrationMenu';
import CreateCharacter from './components/CreationCharacterMenu/CreationCharacterMenu';
import ShopComponent from './components/ShopComponent';
import InventoryComponent from './components/InventoryComponent';
import GameComponent from './components/GameComponent/GameComponent';
import CharacterMenu from './components/CharacterMenu/CharacterMenu';
import Headphones from './components/Games/Headphones/Headphones';
import LogInMenu from './components/LogInMenu/LogInMenu';
import Ducks from './components/Games/Ducks/Ducks';
import Darts from './components/Games/Darts/Darts';
import Tower from './components/Games/Tower/Tower';
import Maze from './components/Games/Maze/Maze';
// import AsyncStorage from "@react-native-async-storage/async-storage";
console.disableYellowBox = true;
// AsyncStorage.setItem("phoneNumber", '+79991774634').then( () => console.log("[AsyncStorage] -> Set debug phone number") );
const Routes = () => (
<Router>
<Scene key = "root">
<Scene key = "LogIn" component = {LogInMenu} hideNavBar = {true} title = "LogIn" type="reset" initial = {true} />
<Scene key = "SignIn" component = {RegistrationMenu} hideNavBar = {true} title = "SignIn" type="reset"/>
<Scene key = "CharacterMenu" component = {CharacterMenu} hideNavBar = {true} title = "HeroMenu" />
<Scene key = "CharacterConstructor" component = {CreateCharacter} hideNavBar = {true} title = "Construct" />
<Scene key = "CreateCharacter" component = {CharacterConstructor} hideNavBar = {true} title = "Create" />
<Scene key = "GameComponent" component = {GameComponent} hideNavBar = {true} title = "Game" />
<Scene key = "Shop" component = {ShopComponent} hideNavBar = {true} title = "Shop" />
<Scene key = "Inventory" component = {InventoryComponent} hideNavBar = {true} title = "Inventory" />
<Scene key = "Darts" component = {Darts} hideNavBar = {true} title = "Darts" />
<Scene key = "Ducks" component = {Ducks} hideNavBar = {true} title = "Ducks"/>
<Scene key = "Headphones" component = {Headphones} hideNavBar = {true} title = "Headphones" />
<Scene key = "Tower" component = {Tower} hideNavBar = {true} title = "Tower" />
<Scene key = "Maze" component = {Maze} hideNavBar = {true} title = "Maze" />
</Scene>
</Router>
);
export default Routes;