null is not an object (Evaluating ‘NativeModules[“SQLite”][method]’)

null is not an object (Evaluating ‘NativeModules[“SQLite”][method]’)

The problem “null is not an object (Evaluating ‘NativeModules[“SQLite”][method]’)” is related to SQLite database. When I made the tutorial Example of SQLite Database in React Native everything was well but after some time when React Native version was updated, I faced this issue.


While working with SQLite in React Native you can face the problem “null is not an object (Evaluating ‘NativeModules[“SQLite”][method]’)”.


While getting this error I tried to solve it by finding it on the internet but nothing was working. So I followed the following steps and it is solved now.

  1. If you are linking SQLite with react-native link then required changes are not done by the linker so you have to do it on your own. Add the required changes mentioned in the Example of SQLite Database in React Native.
  2. If everything is well and you have already done all the changes then open the following path
    and replace


As I was using the react-native:0.58.4 and the defined version was react-native:0.14.+, so just removed the version and added plus(+) for the latest version available and it worked for me. I have also updated compile with implementation because of Gradle 3.+ that Google announced at IO17. If you have no idea about the compile to implementation update then you can visit here, You will find the detailed answer to your question.

Please have a look blow for updated YouSQLiteProject/node_modules/react-native-sqlite-storage/src/android/build.gradle file.

Hope you have also solved your problem. If you have any issue or you want to share something about the topic you can comment below or contact us here. There will be more posts coming soon. Stay tuned!

Hope you liked it. 🙂

How useful was this post?

Click on a star to rate us!

Average rating / 5. Vote count:

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

2 thoughts on “null is not an object (Evaluating ‘NativeModules[“SQLite”][method]’)”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You have successfully subscribed to the newsletter

There was an error while trying to send your request. Please try again.

About React will use the information you provide on this form to be in touch with you and to provide updates and marketing.