-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
47 lines (39 loc) · 958 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React from "react";
import {createBottomTabNavigator} from "react-navigation-tabs"
import {createAppContainer,createSwitchNavigator} from "react-navigation"
import {createStackNavigator} from "react-navigation-stack"
import Icons from "react-native-vector-icons/Ionicons"
import Icon from "react-native-vector-icons/Octicons"
import AboutScreen from "./screens/AboutScreen"
import HomeScreen from "./screens/HomeScreen"
import TranslateScreen from "./screens/TranslateScreen"
const Auth= createStackNavigator({
Home:{
screen:HomeScreen,
navigationOptions:{
headerShown:false
}
},
About:{
screen:AboutScreen,
navigationOptions:{
headerShown:true,
}
},
Translate:{
screen:TranslateScreen,
navigationOptions:{
headerShown:true
}
},
});
export default createAppContainer(
createSwitchNavigator(
{
AuthSt:Auth
},
{
initialRouteName:"AuthSt",
}
)
);