Update index.js

Fix  Cannot read property 'getLanguages' of undefined
This commit is contained in:
giantss 2017-12-12 10:00:40 +08:00 committed by GitHub
parent c4764d85d4
commit 978c40658c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,5 +9,5 @@ if (typeof RNI18n !== 'undefined') {
console.warn('react-native-i18n module is not correctly linked');
}
export const getLanguages = RNI18n.getLanguages;
export const getLanguages = () => RNI18n.getLanguages();
export default I18nJs;