Async Storage SQLite
Multiplatform key-value storage backed by SQLite for React Native Async Storage

Installation
Android
implementation("io.github.react-native-async-storage:async-storage-sqlite:VERSION")
iOS (CocoaPods)
pod 'AsyncStorageSQLiteKMP', 'VERSION'
Quick start
Visit Usage page to learn more
Android
import org.asyncstorage.sqlitestorage.SQLiteStorageFactory
val storage = SQLiteStorageFactory(this).create("my_database_name")
suspend fun single(): Entry {
val entry = storage.read("my_key")
return entry
}
{
entry = Entry(, )
storage.write(entry)
}
iOS
AsyncStorageSQLite
storage ()
() -> {
entry storage.read(key: )
entry
}
() {
entry (key: , value: )
storage.write(entry: entry)
}
Contributing
Tests
Gradle tasks to run tests:
storageTests - run unit tests for all platforms
storageTestsAndroid - run unit tests for Android platform
storageTestsIos - run unit tests for iOS platform
Re-running tests when tasks are up-to-date:
./gradlew :sqlite-storage:storageTests --rerun-tasks
Website
- Make sure Python 3 (v3.11.7+) and pip (v24.0+) is installed
- Follow installation steps from MkDocs Material
- Run development docs:
mkdocs serve