ADD: Mock for RNLocalize

This commit is contained in:
marcosrdz 2020-06-15 18:39:13 -04:00
parent b857eb9fa3
commit 1a3450c352

8
__mocks__/react-native-localize.js vendored Normal file
View file

@ -0,0 +1,8 @@
const getLocales = () => [
// you can choose / add the locales you want
{ countryCode: 'US', languageTag: 'en-US', languageCode: 'en', isRTL: false },
{ countryCode: 'FR', languageTag: 'fr-FR', languageCode: 'fr', isRTL: false },
];
const getCurrencies = () => ['USD', 'EUR']; // can be empty array
export { getLocales, getCurrencies };