question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: react-native-device-info: NativeModule.RNDeviceInfo is null on published app without any change

See original GitHub issue

Hi,

Since yesterday or the day before we encounter an error on existing apps, published on the stores, already installed and not updated, and only on Android for now (on several types of Android phones). Is there any solution?

com.facebook.react.common.JavascriptException: Error: react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:
• For react-native <= 0.59: Run `react-native link react-native-device-info` in the project root.
• Rebuild and re-run the app.
• If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-device-info/react-native-device-info, stack:
<unknown>@1064:316
h@2:1585
<unknown>@1061:3239
h@2:1585
<unknown>@919:3395
h@2:1585
<unknown>@905:750
h@2:1585
<unknown>@902:2024
h@2:1585
<unknown>@468:3338
h@2:1585
<unknown>@6:69
h@2:1585
d@2:958
global code@2028:3
at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java
  at java.lang.reflect.Method.invoke (Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:151)
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
  at android.os.Looper.loop (Looper.java:214)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run (MessageQueueThreadImpl.java:226)
  at java.lang.Thread.run (Thread.java:919)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
mikehardycommented, Feb 19, 2022

If you’re using expo, there’s not a lot we can do here, sorry. They have their own device info module, perhaps best to use it ?

0reactions
rndi-botcommented, Apr 30, 2022

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is sti ll here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solu tions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

Read more comments on GitHub >

github_iconTop Results From Across the Web

jest : react-native-device-info: NativeModule.RNDeviceInfo is ...
RNDeviceInfo is null. To fix this issue try these steps: The app runs fine in emulator without error. The problem seems with jest...
Read more >
react-native-device-info - npm
Linking in native modules is a frequent source of trouble for new react-native developers, resulting in errors like "RNDeviceInfo is null" ...
Read more >
new nativeeventemitter() requires a non-null argument expo
The error on the title showed whenever I'm import react-native-fbsdk-next. To Reproduce. Create new Expo app, install react-native-fbsdk-next, no using expo run ...
Read more >
Top 5 react-native-device-info Code Examples - Snyk
To help you get started, we've selected a few react-native-device-info examples, based on popular ways it is used in public projects. Secure your...
Read more >
NativeModule.RNDeviceInfo is NULL - Expo Development Tools
# Bug Trying to use react-native-device-info for the first time and I'm getting…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found