Closed amitmehtacode closed 1 year ago
It give the incorrect or say default country code when user is on Kolkata and Nepal it give United State as a country
2.2.0
System: OS: macOS 13.1 CPU: (10) arm64 Apple M1 Pro Memory: 105.02 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.6.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 8.13.2 - /opt/homebrew/bin/npm Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.16 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.67.3 => 0.67.3 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found
console.log('Country Name--->>', RNLocalize.getCountry())
@amitmehtacode Please publish a screenshot of your language list (in your phone settings). Note that this returns the region / country set in settings, not according to the user location.
Closed as no answer.
Bug summary
It give the incorrect or say default country code when user is on Kolkata and Nepal it give United State as a country
Library version
2.2.0
Environment info
Steps to reproduce
Reproducible sample code