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

View File

@ -1,8 +1,7 @@
'use strict'; 'use strict';
var Platform = require('Platform'); let { Platform, NativeModules/RNI18N } = require('react-native')
var I18n = require('./vendor/i18n'); let I18n = require('./vendor/i18n')
var { RNI18n } = require('react-native').NativeModules;
if (Platform.OS === 'android') { if (Platform.OS === 'android') {
RNI18n.getCurrentLocale( function(locale) { RNI18n.getCurrentLocale( function(locale) {