Skip to content

Instantly share code, notes, and snippets.

@VivekNayyar
Last active May 21, 2018 11:04
Show Gist options
  • Save VivekNayyar/59e470fbde9754add9ffe42cde98f92d to your computer and use it in GitHub Desktop.
Save VivekNayyar/59e470fbde9754add9ffe42cde98f92d to your computer and use it in GitHub Desktop.
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