Skip to content

Commit 07ce269

Browse files
authored
Merge pull request AlexanderZaytsev#153 from giantss/master
Fix Cannot read property 'getLanguages' of undefined
2 parents c4764d8 + 978c406 commit 07ce269

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ if (typeof RNI18n !== 'undefined') {
99
console.warn('react-native-i18n module is not correctly linked');
1010
}
1111

12-
export const getLanguages = RNI18n.getLanguages;
12+
export const getLanguages = () => RNI18n.getLanguages();
1313
export default I18nJs;

0 commit comments

Comments
 (0)