-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
49 lines (48 loc) · 1.04 KB
/
Copy pathApp.js
File metadata and controls
49 lines (48 loc) · 1.04 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
46
47
48
49
import React from "react";
import { View, Text, StyleSheet } from "react-native";
import {
StackNavigator,
createDrawerNavigator,
DrawerItems,
NavigationActions,
createMaterialTopTabNavigator,
StackRouter
} from "react-navigation";
import LoginScreen from "./Screen/LoginScreen";
import SplashScreen from "./Screen/SplashScreen";
import DetailsScreen from "./Screen/DetailsScreen";
const RootStack = StackNavigator(
{
SplashScreen: {
screen: SplashScreen,
navigationOptions: {
header: null
}
},
LoginScreen: {
screen: LoginScreen
},
DetailsScreen: {
screen: DetailsScreen
}
},
{
initialRouteName: "SplashScreen",
/* The header config is now here */
navigationOptions: {
headerStyle: {
backgroundColor: "#000000"
},
headerTintColor: "#ffffff",
headerTitleStyle: {
fontWeight: "bold"
},
animationEnabled: true
}
}
);
export default class App extends React.Component {
render() {
return <RootStack />;
}
}