-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
31 lines (27 loc) · 985 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
import { StatusBar } from "expo-status-bar";
import React from "react";
import { LogBox, StyleSheet, Text, View } from "react-native";
import WelcomeScreen from "./screens/WelcomeScreen";
import HomeScreen from "./screens/HomeScreen";
import { AppDrawerNavigator } from "./components/AppDrawerNavigator";
// import { AppTabNavigator } from "./components/AppTabNavigator";
import { createAppContainer, createSwitchNavigator } from "react-navigation";
console.disableYellowBox = true;
export default function App() {
return <AppContainer />;
}
const switchNavigator = createSwitchNavigator({
WelcomeScreen: { screen: WelcomeScreen },
// HomeScreen: { screen: HomeScreen },
Drawer: { screen: AppDrawerNavigator },
// BottomTab: {screen: AppTabNavigator},
});
const AppContainer = createAppContainer(switchNavigator);
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});