react-native-i18n/index.js

8 lines
151 B
JavaScript

import {NativeModules} from 'react-native'
import I18n from 'i18n-js'
const {RNI18n} = NativeModules
I18n.locale = RNI18n.locale
export default I18n