🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

expo-sqlite

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-sqlite

Provides access to a database that can be queried through a WebSQL-like API (https://www.w3.org/TR/webdatabase/). The database is persisted across restarts of your app.

3.0.0
Source
npm
Version published
Weekly downloads
67K
-7.39%
Maintainers
1
Weekly downloads
 
Created
Source

expo-sqlite

Provides access to a database that can be queried through a WebSQL-like API (https://www.w3.org/TR/webdatabase/). The database is persisted across restarts of your app.

API documentation

Installation

This package is pre-installed in managed Expo projects. You may skip the rest of the installation guide if this applies to you.

For bare React Native projects, you must ensure that you have installed and configured the @unimodules/core package before continuing.

Add the package to your npm dependencies

npm install expo-sqlite

Configure for iOS

Add the dependency to your Podfile and then run pod install.

pod 'EXSQlite', path: '../node_modules/expo-sqlite/ios'

Configure for Android

  • Append the following lines to android/settings.gradle:
include ':expo-sqlite'
project(':expo-sqlite').projectDir = new File(rootProject.projectDir, '../node_modules/expo-sqlite/android')
  • Insert the following lines inside the dependencies block in android/app/build.gradle:
api project(':expo-sqlite')
  • In MainApplication.java, import the package and add it to the ReactModuleRegistryProvider list:
import expo.modules.expo.modules.sqlite.SQLitePackage;
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
  // Your other packages will be here
  new SQLitePackage()
), Arrays.<SingletonModule>asList());

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

Keywords

react-native

FAQs

Package last updated on 27 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts