UNPKG

expo-sqlite

Version:

Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.

14 lines (10 loc) 366 B
import { requireNativeModule } from 'expo'; let ExpoSQLite; if (typeof window === 'undefined') { ExpoSQLite = require('../web/SQLiteModule.node').default; } else if (typeof globalThis.ExpoDomWebView !== 'undefined') { ExpoSQLite = requireNativeModule('ExpoSQLite'); } else { ExpoSQLite = require('../web/SQLiteModule').default; } export default ExpoSQLite;