Last active
August 26, 2017 19:18
-
-
Save aaronblondeau/53cc3d1a57ddbd28d7ae8c5881bcae7c to your computer and use it in GitHub Desktop.
Index with react-navigation
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 | |
* @flow | |
*/ | |
import React from 'react'; | |
import { | |
AppRegistry | |
} from 'react-native'; | |
import { | |
StackNavigator, | |
} from 'react-navigation'; | |
import HomeScreen from './components/HomeScreen'; | |
import DetailScreen from './components/DetailScreen'; | |
const App = StackNavigator({ | |
Home: { screen: HomeScreen }, | |
Detail: { screen: DetailScreen }, | |
}); | |
AppRegistry.registerComponent('ReactNativeQuickly1', () => App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment