Created
May 21, 2018 10:20
-
-
Save VivekNayyar/744d22c92bc4f6f01f1fe83cd75787f8 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 OTP from "./screens/OTP"; | |
import { createStackNavigator } from "react-navigation"; | |
const Routes = createStackNavigator( | |
{ | |
Home: { | |
screen: Home | |
}, | |
OTP: { | |
screen: OTP | |
} | |
}, | |
{ | |
initialRouteName: "Home", | |
navigationOptions: { | |
headerTitleStyle: { | |
fontWeight: "bold", | |
color: "#fff", | |
}, | |
headerTintColor: "#fff" | |
} | |
} | |
); | |
export default Routes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment