JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24692
  • Score
    100M100P100Q141883F
  • License MIT

SQLite bindings for React Native

Package Exports

  • react-native-sqlite-storage

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-sqlite-storage) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-sqlite-storage

SQLite Native Plugin for React Native

Inspired by fantastic work done by Chris Brody I did not want to re-invent the wheel. The original Cordova plugin was written so well and adhered to latest WebSQL API that there was no need to come up with anything much different. So the Cordova plugin was ported to React Native.

This is iOS binding only for now. Initial release - fully working. Tested so far with Simulators.

How to use (npm is coming):

  1. Download the code into your node_modules subdirectory in your React Native project root $(PRJ_SRC)/node_modules/react-native-sqlite-storage
  2. Drag the SQLite Xcode project as a dependency project into your React Native XCode project
  3. Add libSQL.a (from Workspace location) to the required Libraries and Frameworks.
  4. Add var SQLite = require('react-native-sqlite-storage') to your index.ios.js
  5. Add JS application code to use SQLite API in your index.ios.js etc.

Enjoy!