Update requires to be compatible with ES6

This commit is contained in:
Jorge Maroto 2015-12-11 13:17:27 +01:00
parent 141f0c5995
commit cd6e47dfc0
1 changed files with 2 additions and 3 deletions

View File

@ -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) {