-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (29 loc) · 800 Bytes
/
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
import React, { Component } from "react";
import Splash from "./src/screens/Splash";
import Phone from './src/screens/Phone';
import Level from './src/screens/Level'
import Extempore from './src/screens/Extempore'
import {createAppContainer, createSwitchNavigator} from 'react-navigation'
import { createStackNavigator} from 'react-navigation-stack'
import Controls from './src/screens/Controls'
import Reading from './src/components/Reading'
const authStack=createSwitchNavigator({
Phone:Phone,
Level:Level,
},
);
const appStack=createStackNavigator({
ActivePassive:Reading
})
const AppCon= createSwitchNavigator(
{
Splash:Splash,
App:appStack,
Auth:authStack
},
{
initialRouteName:'Splash'
}
)
const AppContainer=createAppContainer(AppCon)
export default AppContainer