{"repo":"craftzdog/react-native-sqlite-2","free":true,"listed":false,"github":"https://github.com/craftzdog/react-native-sqlite-2","clone":"git clone https://github.com/craftzdog/react-native-sqlite-2.git","description":"SQLite3 Native Plugin for React Native for iOS, Android, Windows and macOS.","language":"TypeScript","stars":387,"topics":["pouchdb","react-native","sqlite","sqlite3"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"SQLite3 Native Plugin for React Native for Android, iOS, Windows and macOS. This plugin provides a WebSQL-compatible API to store data in a react native app, by using a SQLite database on the native side. Inspired by fantastic work done by Nolan Lawson. It should be a drop-in replacement for react-native-sqlite-storage. It works pretty well with PouchDB on React Native app. Used by mozilla / notes Inkdrop Why? The reason for this plugin is that react-native-sqlite-storage has some problems when used with PouchDB: - It can't store string data with \\u0000 due to the react native problem. - PouchDB heavily uses the Null character in the document IDs for building index, so it won't work well. - It's unstable for storing PouchDB's attachments: #6037. This plugin solves these problems. Newer SQLite3 on Android Even the latest version of Android is several versions behind the latest version of SQLite, whereas iOS has newer version. React Native SQLite 2 uses sqlite-android which allows you to use the latest version of it with new SQLite features enabled: - JSON1 extension - Common Table expressions - Indexes on expressions - FTS5 extension Getting started Add react-native-sqlite-2 to your dependencies: Link native dependencies From react-native 0.60 autolinking will take care of the link step but don't forget to run pod install . iOS/macOS If using cocoapods in the ios/ directory run Android Please make sure AndroidX is enabled in your project by editing android/gradle.properties an","default_branch":null,"files":null,"tree":[],"storefront":"/r/craftzdog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/craftzdog/react-native-sqlite-2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}