Error: react-native-device-info: NativeModule.RNDeviceInfo is null on published app without any change
See original GitHub issueHi,
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:
- Created 2 years ago
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 ?
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