index.js (8 lines of code) (raw):

/** * @format */ import {AppRegistry, Platform} from 'react-native'; import App from './src/App'; import {name as appName} from './app.json'; if (Platform.OS === 'android') { // only android needs polyfill require('intl'); // import intl object require('intl/locale-data/jsonp/en-US'); // load the required locale details } AppRegistry.registerComponent(appName, () => App);