mirror of
https://github.com/status-im/react-native-i18n.git
synced 2025-02-21 16:28:19 +00:00
Update requires to be compatible with ES6
This commit is contained in:
parent
141f0c5995
commit
cd6e47dfc0
5
index.js
5
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user