我正在尝试获取设备的当前国家/地区,但没有找到任何内容。在 React Native 中可以这样做吗?我尝试使用react-native-device-info但它也不支持但在以前的版本中它可以通过 getDeviceCountry() 获得。现在对于最新版本,它显示错误:
类型错误:_reactNativeDeviceInfo.default.getDeviceCountry 不是函数。(在 '_reactNativeDeviceInfo.default.getDeviceCountry()' 中,'_reactNativeDeviceInfo.default.getDeviceCountry' 未定义)