Category: React Native Device Info

Posted in React Native Device Info

Device CountryName always returns locale code

Here is my code: import DeviceInfo from ‘react-native-device-info’; let country_Name = DeviceInfo.getDeviceCountry(); console.log(country_Name); // US

Continue Reading
Posted in React Native Device Info

React/RCTBridgeModule.h not found

This error just popped out of the blue. Has anyone run into this issue?

Continue Reading
Posted in React Native Device Info

React native link does not working

when using this command ‘react-native link react-native-device-info’. It gives the following error. Something went wrong while linking. Error: Expected “/* Begin “, “/* End “,…

Continue Reading
Posted in React Native Device Info

‘React/RCTDefines.h’ file not found

when i run bulid in ios ,it can not work and show the error that ‘React/RCTDefines.h’ file not found, what should i do?

Continue Reading
Posted in React Native Device Info

DeviceInfo native module is not installed correctly after updating to RN0.44.0

After updating React Native to 0.44.0 I get the error that DeviceInfo module is not installed correctly: “react”: “^16.0.0-alpha.6”, “react-native”: “^0.44.0”,

Continue Reading
Posted in React Native Device Info

Warning: License for package Android SDK Build-Tools 25.0.2 not accepted.

useNewCruncher has been deprecated. It will be removed in a future version of th e gradle plugin. New cruncher is now always enabled. Checking the…

Continue Reading
Posted in React Native Device Info

android buildToolsVersion “25.0.2” is too high for us

Can you reduce it’s version to 23.0.1 ? Thanks!

Continue Reading
Posted in React Native Device Info

detect passcode set

hi there, we’re looking for a way to detect if the passcode has been set for the device. we’re thinking on implementing this a new…

Continue Reading
Posted in React Native Device Info

Crash when start (Android)

The app crash me when start, I try with manual installation and with react-native link. Does not display error message. react-native-device-info: 0.99 RN: 0.41.2 Android…

Continue Reading
Posted in React Native Device Info

TypeError: Cannot read property ‘bundleId’ of undefined when running Jest tests

Geetting the following error when running jest tests: Error: TypeError: Cannot read property ‘bundleId’ of undefined Code: import DeviceInfo from ‘react-native-device-info’ const bundleId = DeviceInfo.getBundleId()…

Continue Reading