From cd6e47dfc0893d7959a0a5dc6e907ded4b3d8046 Mon Sep 17 00:00:00 2001 From: Jorge Maroto Date: Fri, 11 Dec 2015 13:17:27 +0100 Subject: [PATCH] Update requires to be compatible with ES6 --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 36c0217..4fbe376 100644 --- a/index.js +++ b/index.js @@ -1,8 +1,7 @@ 'use strict'; -var Platform = require('Platform'); -var I18n = require('./vendor/i18n'); -var { RNI18n } = require('react-native').NativeModules; +let { Platform, NativeModules/RNI18N } = require('react-native') +let I18n = require('./vendor/i18n') if (Platform.OS === 'android') { RNI18n.getCurrentLocale( function(locale) {