Skip to content

Instantly share code, notes, and snippets.

@aaronblondeau
Last active August 26, 2017 19:18
Show Gist options
  • Save aaronblondeau/53cc3d1a57ddbd28d7ae8c5881bcae7c to your computer and use it in GitHub Desktop.
Save aaronblondeau/53cc3d1a57ddbd28d7ae8c5881bcae7c to your computer and use it in GitHub Desktop.
Index with react-navigation
/**
* 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