diff --git a/example/src/__mocks__/react-native-i18n.js b/example/src/__mocks__/react-native-i18n.js index a19c3b8..3c25f56 100644 --- a/example/src/__mocks__/react-native-i18n.js +++ b/example/src/__mocks__/react-native-i18n.js @@ -3,5 +3,5 @@ import I18nJs from 'i18n-js'; I18nJs.locale = 'en'; // a locale from your available translations -export const getLanguages = () => Promise.resolve('en'); +export const getLanguages = () => Promise.resolve(['en']); export default I18nJs;