Last active
May 21, 2018 11:04
-
-
Save VivekNayyar/59e470fbde9754add9ffe42cde98f92d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { View } from "react-native"; | |
import Home from "./screens/Home"; | |
import DashboardTabRoutes from "./screens/Dashboard/Routes"; | |
import { createStackNavigator } from "react-navigation"; | |
import CustomHeader from "./components/CustomHeader"; | |
const Routes = createStackNavigator( | |
{ | |
Home: { | |
screen: Home, | |
navigationOptions: { | |
header: props => <CustomHeader {...props} /> | |
} | |
}, | |
Dashboard: { | |
screen: DashboardTabRoutes, | |
navigationOptions: { | |
header: null, | |
headerLeft: null | |
} | |
} | |
}, | |
{ | |
initialRouteName: "Home", | |
navigationOptions: { | |
headerStyle: { | |
backgroundColor: "transparent" | |
}, | |
headerTitleStyle: { | |
fontWeight: "bold", | |
color: "#fff", | |
zIndex: 1, | |
fontSize: 18, | |
lineHeight: 23, | |
fontFamily: "CircularStd-Bold" | |
}, | |
headerTintColor: "#fff" | |
animationEnabled: true | |
} | |
} | |
); | |
export default Routes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment