Created
March 18, 2018 19:50
-
-
Save dvrajan/a511c23ab3be50b23a9e29b21342f6ab to your computer and use it in GitHub Desktop.
Blogpost sample index.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
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