Skip to content

Instantly share code, notes, and snippets.

@benvium
Created Apr 29, 2016
Embed
What would you like to do?
Use same root component for android and iOS
import React, {
AppRegistry,
} from 'react-native';
AppRegistry.registerComponent('MyApp', () => require('./app/Root') );
import React, {
AppRegistry,
} from 'react-native';
AppRegistry.registerComponent('MyApp', () => require('./app/Root') );
// 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