Questions tagged [react-native-device-info]
39 questions
1
vote
0 answers
Execution failed for task ':compileDebugJavaWithJavac' while trying to build Android App
Anyone can please help me with resolving the below error. I am getting this issue while building android app with in React Native project.
1: Task failed with an exception.
What went wrong:
Execution failed for task…

When Key
- 87
- 3
- 7
1
vote
2 answers
jest : react-native-device-info: NativeModule.RNDeviceInfo is null
I am doing my very first jest test for a React Native 0.68, jest/29.0 and nodes 18. The test case is a unit test on a function:
import helper from "./helper";
it ('describe isHex ', () => {
const num = "13ad";
…

user938363
- 9,990
- 38
- 137
- 303
1
vote
0 answers
How to auto-detect phone numbers of the user in rect-native?
I am trying to build a react-native application in which i want to auto detect the mobile phone numbers of the user.
for ex: if i have a dual sim phone and have two sim-cards then i should get the phone numbers of those two simcard.
I have tried…

Shail Patel
- 187
- 2
- 11
1
vote
2 answers
React native android app crashes in assemble release build when use react-native-device-info module
In debug build it is working fine but when in release apk build, when run it only display splash screen then it crashes.
I tried many technics and look the related issue in the forum to fix it, did not work.

Raikumar Khangembam
- 948
- 1
- 12
- 24
1
vote
1 answer
How to get DeviceInfo and DeviceId in React js web application Not React-Native Application
I have Installed React-native-device-info API in my React js project. But when running npm start command in command prompt it was throwing error like " Module not found: Can't resolve 'react-native' in…

sai laxmi
- 11
- 1
- 2
1
vote
1 answer
Adding React Native module doesn't add line to Podfile, but `pod install` installs it anyway
I added react-native-device-info with npm i react-native-device-info. I'm using React Native 0.61, so I expected that it would automatically add a line in my Podfile for RNDeviceInfo. My Podfile didn't change, BUT when I ran pod install, it said…

RNdev
- 953
- 1
- 8
- 26
1
vote
2 answers
device.getModel() is not working properly
I am trying to get the modelname using DeviceInfo.getModel() the inbuilt method that is provided by the react-native-device-info but for each model instead of giving the model name it is returning iPhone.I am not able to understand why this is…

Dhruvil Shah
- 376
- 2
- 8
1
vote
2 answers
Unable to return IP address using react-native-device-info's getIPAddress()
I need to return the IP address for the device running my React Native app (an Android smart tv app). I am making use of react-native-device-info which has allowed me to get the model, manufacturer and operating system. However I am unable to get…

G. Cox
- 97
- 1
- 2
- 7
1
vote
1 answer
Set and get app version name and app version code for react-native-web application
Is there a way to set an app version and build number for a react-native-web app?
I am currently using react-native-web for an app (for IOS, Android and Web).
I am also using react-native-device-info.
Currently for web when I…

Florin Dobre
- 9,872
- 3
- 59
- 93
1
vote
1 answer
React Native Pixel Density issue with Pixel 2 XL (react-native-device-info)
Apparently when you set your device's display size to small react-native-device-info library thought that it's a tablet and according to that all the layouts and everything starting to act like tablets and my images aren't visible anymore. Does…

Mertcan Diken
- 14,483
- 2
- 26
- 33
0
votes
0 answers
How can we get other apps' screen time in react native? Is there any library or package available in react native?
I want to get the other app's screen time using my react native app. I'll be using all these data with the permission of user. Is there any npm package or 3rd party library available??
I tried to google it but didn't find any proper solution. Can…

nitesh saini
- 1
- 2
0
votes
0 answers
React Native Android App Build failed in appcenter.ms
I am trying to build my react native android app using appcenter.ms, but i am getting this error.
> Task :react-native-device-info:compileReleaseJavaWithJavac FAILED
An exception has occurred in the compiler (1.8.0_372). Please file a bug against…

Ayodele Kayode
- 304
- 4
- 20
0
votes
0 answers