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

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';
6 Likes