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.

NativeModule.RNDeviceInfo is null on RN 0.59.10

See original GitHub issue

Bug

Dear all,

I am upgrading my app from RN 0.53 to RN 0.59.10 and it’s been a day I’m facing the following bug after the app successfully compiles:

*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: @react-native-community/react-native-device-info: NativeModule.RNDeviceInfo is null.

I have upgraded to the package version to the last one (i.e. 2.3.2), I’ve tried to follow the instructions given, I’ve tried to unlink, uninstall, install, link, pod install, but still, the issue remains. I’ve also added the piece of code inside react-native-config.js.

Environment info

React native info output:

  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i7-6660U CPU @ 2.40GHz
      Memory: 149.80 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.7.0 - /usr/local/Cellar/node/12.7.0/bin/node
      Yarn: 1.12.3 - ~/.yarn/bin/yarn
      npm: 6.10.0 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
      Android SDK:
        API Levels: 23, 24, 25, 26, 27, 28
        Build Tools: 23.0.1, 23.0.2, 25.0.1, 25.0.2, 26.0.1, 27.0.3, 28.0.2, 28.0.3
        System Images: a...s_playstore | Google Play Intel x86 Atom Sys...
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5314842
      Xcode: 10.3/10G8 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: ^0.59.10 => 0.59.10 
    npmGlobalPackages:
      react-native-cli: 2.0.1

Library version: 2.3.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18

github_iconTop GitHub Comments

1reaction
GrinchakAndrewcommented, Nov 4, 2019

Removing the podfile entry for the lib ( pod ‘RNDeviceInfo’, :path => ‘…/node_modules/react-native-device-info’), and re-linking manually, as described here: https://github.com/react-native-community/react-native-device-info#linking-for-react-native--059-only-react-native--060-skip-this-as-auto-linking-should-work, worked for RN 59.

1reaction
davidmarinangelicommented, Oct 29, 2019

Yeah, I am still facing the transition: I will reply here if I will find something missing in my configuration. Thanks a lot for your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RNDeviceInfo is null · Issue #819 · react-native-device-info ...
Trying to run a clean project on Android causes the red error screen with the message: Error: @react-native-community/react-native-device-info: ...
Read more >
NativeModule.RNDeviceInfo is null. To fix this issue these ...
Try running the command. react-native link react-native-device-info. or. cd ios && pod install && cd .. Then try running your project again ...
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… this error when the application tries to start up: ...
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 >
react-native-device-info - UNPKG
20, throw new Error(`@react-native-community/react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:.
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