undefined is not an object(evaluating '_expoSqlite.SQlite.openDatabase')

Please provide the following:

  1. SDK Version: 35.0.0
  2. Platforms(Android/iOS/web/all): Android

Hi

It seems the import syntax for sqlite has changed.

Instead of:

import { SQLite } from 'expo-sqlite';

You should now do this:

import * as SQLite from 'expo-sqlite';
10 Likes

It worked for me. Thank You.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.