Skip to content Skip to sidebar Skip to footer

React Native Android Error In Com.facebook.react.bridge.nosuchkeyexception

I'm getting an error caught by Crashlytics and it's happening to almost 45% of the users but it doesn't seem to happen when the user is using the app but when it's in the backgroun

Solution 1:

This is a problem caused by the stacktrace-parser library which is used internally by react native. Basically, release 0.1.4 works fine while releases 0.1.5 and 0.1.6 causes the lineNumber error.

Do the following to fix this:

  1. If you are using yarn add the following to your package.json:
"resolutions":{"stacktrace-parser":"0.1.4"},

if you are using npm add the following to your package.json:

"dependencies": {
    ...
    "stacktrace-parser": "0.1.4"
  1. Remove the yarn.lock (or package-lock.json) file and the node_modules directory.
  2. Install the packages yarn install (or npm install)
  3. Rebuild your release build.

I hope this helps others until the library gets fixed.

Solution 2:

Solution 3:

Make sure "backgroundColor" value is never null or undefined. In my case that was the reason.

Solution 4:

It ended up being an issue with some native library that was causing the crash. Simply upgrading it solved the problem

Post a Comment for "React Native Android Error In Com.facebook.react.bridge.nosuchkeyexception"