Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
Fix  Cannot read property 'getLanguages' of undefined
  • Loading branch information
giantss authored Dec 12, 2017
1 parent c4764d8 commit 978c406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 978c406

Please sign in to comment.