Questions tagged [react-native-device-info]

39 questions
0
votes
1 answer

React Native code broke after react-native-device-info

I am working on react native project and trying to fetch Device-info from https://github.com/react-native-device-info/react-native-device-info this library. And, the build is failing after this. Here is my build.gradle looks like: buildscript { …
0
votes
1 answer

Invariant Violation: Module JSTimers is not a registered callable module(calling callTimers).Issue due to device-info package in lerna setup

React Native version: 0.64.0 Steps To Reproduce [Repo-code]https://github.com/rsoni5519/lerna-react-native Please use above link and follow the steps described in README. Expected Results The App should work when we are clicking on Track buttons.…
0
votes
1 answer

React native target Samsung Galaxy S7

My styling is broken on Samsung Galaxy S7 - I am using react-native-device-info is there a way I can target the Samsung S7 so I can conditionally set the styling? When I try and use DeviceInfo.getDeviceId() and my emulator it gives me Ùnknown import…
Bomber
  • 10,195
  • 24
  • 90
  • 167
0
votes
1 answer

Does react-native-device-info `getUniqueId()` give UUID or GUID?

In my React Native app, I have to pass a unique ID to an API endpoint, and I've been told that it has to be a GUID. What I want to know is: 1) Does the getUniqueId() method in react-native-device-info give a GUID? 2) I've seen another module…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
2 answers

After removing the RCTWebView from react.xcodeproj again it adding in the project auomatically

I got a deprecated error while uploading the build to testflight, because of the UIWebView. So I have removed the RCTWebView.m, RCTWebView.h, RCTWebViewManager.m, RCTWebViewManager.h and then I not found the UIWebview for some time. But here again…
sejn
  • 2,040
  • 6
  • 28
  • 82
0
votes
2 answers

React Native: How can I use the DeviceInfo isTablet() method to conditionally apply a style to an element?

I am trying to adapt the design of my app to tablet and one way to detect if the app is running on a tablet is by using the DeviceInfo module in particular the isTablet() method. How can I use this method to conditionally apply styles to an…
Hols
  • 361
  • 1
  • 5
  • 21
0
votes
0 answers

Has anyone managed to make react-native-device-info with react-native 0.58?

I am trying to get the deviceid with react-native-device-info. I started with an empty expo project which I ejected. I imported the library, I also linked it. But then I get gradle errors in android studio. Have anyone managed to make it working.…
Tax Raoul
  • 73
  • 2
  • 8
0
votes
1 answer

getDeviceName does not return device name on android

I'm using react-native-device-info to get device name. But getDeviceName returns unknown in Android. It's working good in iOS. version: react-native-device-info: 0.25.0, Any help is much appreciated. thanks!
ninh_nguyen
  • 253
  • 2
  • 5
  • 14
-1
votes
1 answer

Expo / React Native Reading Device Info

is there no way to read serial number using expo. I should be able to read using external packages like react-native-device-info but I can’t do this without expo? because when i install this package i get this and similar errors. I tried…
hamdi
  • 67
  • 2
  • 10
1 2
3