Skip to content

Instantly share code, notes, and snippets.

@dvrajan
Created March 18, 2018 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvrajan/a511c23ab3be50b23a9e29b21342f6ab to your computer and use it in GitHub Desktop.
Save dvrajan/a511c23ab3be50b23a9e29b21342f6ab to your computer and use it in GitHub Desktop.
Blogpost sample index.js
import React from 'react';
import {AppRegistry} from 'react-native';
import router from './Router'
class Index extends React.Component {
render() {
return router.route(this.props.key, this.props.data)
}
}
AppRegistry.registerComponent('Index', () => Index);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment