Error: Exception in HostObject::get for prop ‘RNSModule’: java.lang.Unsa tisfiedLinkError: dopen failed: library “librnscreens.so” not found, js engine: hermes

Figure 1: Error message in terminal

If you are running a react-native app in android device and getting Error as shown in the above image, then this blog will help you to fix the issue. Let’s solve the issue.

Step 1:
The issue might occur because of the caching or crash of the project, therefore first delete node_modules and run yarn install or npm install. Then run npm cache clean –f to clean the npm cache. Go to the android directory by running cd android then run ./gradlew clean and ./gradlew –stop. The commands are listed in order below.

Step 2:
If you are still getting the same error then open the package.json file and search for react-native-screen package. I have placed the image of my project below.

Figure 2: package.json screen

The above figure clearly shows that the react-native-screen version is ^3.18.2. Here, you need to remove cap (^) from the version and make it 3.18.2 as shown in the below image. Now run yarn install or npm install and then run the project.This time the project will run properly.

Figure 3: Package version after change

I hope this blog helped you to fix the issue. If you still have any issue. Have a nice day. Happy coding.

Leave a Reply

Your email address will not be published. Required fields are marked *