Is getCurrentDeviceCountryAsync() working?

Hello everyone,

I tested :

const [deviceCountry, currentLocale] = await Promise.all([
Util.getCurrentDeviceCountryAsync(),
Util.getCurrentLocaleAsync(),
]);
console.log(“deviceCountry”, “currentLocale”);
console.log(deviceCountry, currentLocale);
}

I’m in France (Paris). If I switch the language of my phone to English (UK), I get :

deviceCountry = FR
currentLocale = en-GB

Is it normal ? Shouldn’t it be deviceCountry = GB ?

What is getCurrentDeviceCountryAsync() output then ?

Thanks !

PS: I’m using SDK v25

Hi,

Is this iOS? Android? What model and version?

Hello @edgar,

Thanks for your quick answer ! :smile:

I’m using the Expo App on iOS to test my project. My device is iPhone 6S, iOS 11.2.6

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.