Created
April 29, 2016 16:17
-
-
Save benvium/50efa49ded427445bb9bd44af1375a1a to your computer and use it in GitHub Desktop.
Use same root component for android and iOS
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, { | |
AppRegistry, | |
} from 'react-native'; | |
AppRegistry.registerComponent('MyApp', () => require('./app/Root') ); |
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, { | |
AppRegistry, | |
} from 'react-native'; | |
AppRegistry.registerComponent('MyApp', () => require('./app/Root') ); |
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
// Your main root component | |
import React, {Component} from 'react-native'; | |
export class Root extends Component { | |
//.. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment