mirror of
https://github.com/status-im/react-native-i18n.git
synced 2025-01-22 18:10:53 +00:00
Merge pull request #153 from giantss/master
Fix Cannot read property 'getLanguages' of undefined
This commit is contained in:
commit
07ce26963e
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…
x
Reference in New Issue
Block a user