Is getCurrentDeviceCountryAsync() working?


#1

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


#2

Hi,

Is this iOS? Android? What model and version?


#3

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


closed #4

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