Last active
September 7, 2018 12:03
-
-
Save sajanthomas01/d477f44fc4b02b53c25587fadb0a947c to your computer and use it in GitHub Desktop.
App.js
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
* @flow | |
*/ | |
import React from 'react'; | |
import { createStackNavigator } from 'react-navigation'; | |
import HomeScreen from './src/HomeScreen'; | |
import WebView from './src/WebView'; | |
const RootStack = createStackNavigator( | |
{ | |
Home: HomeScreen, | |
Webview: WebView, | |
}, | |
{ | |
initialRouteName: 'Home', | |
} | |
); | |
export default class App extends React.Component { | |
render() { | |
return <RootStack />; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment