Cleanup a bit the module

This commit is contained in:
Mathieu Acthernoene 2017-08-27 21:11:00 +02:00
parent 2ce27c04d7
commit 606597ab8b
1 changed files with 4 additions and 6 deletions

View File

@ -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;