Update index.js
Fix Cannot read property 'getLanguages' of undefined
This commit is contained in:
parent
c4764d85d4
commit
978c40658c
2
index.js
2
index.js
|
@ -9,5 +9,5 @@ if (typeof RNI18n !== 'undefined') {
|
||||||
console.warn('react-native-i18n module is not correctly linked');
|
console.warn('react-native-i18n module is not correctly linked');
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getLanguages = RNI18n.getLanguages;
|
export const getLanguages = () => RNI18n.getLanguages();
|
||||||
export default I18nJs;
|
export default I18nJs;
|
||||||
|
|
Loading…
Reference in New Issue