From 606597ab8b7ec29d9c6aff9b9d8cf9350ba824ae Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Sun, 27 Aug 2017 21:11:00 +0200 Subject: [PATCH] Cleanup a bit the module --- index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 7c47e07..4268bb1 100644 --- a/index.js +++ b/index.js @@ -1,10 +1,8 @@ // @flow -import { NativeModules } from 'react-native'; -import I18n from 'i18n-js'; -const { RNI18n } = NativeModules; - -I18n.locale = RNI18n.languages[0]; +const RNI18n = require('react-native').NativeModules.RNI18n; +const I18nJs = require('i18n-js'); +I18nJs.locale = RNI18n.languages[0]; export const getLanguages = RNI18n.getLanguages; -export default I18n; +export default I18nJs;