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;