y-expo-sqlite
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

y-expo-sqlite

import { ExpoSQLitePersistence } from "y-expo-sqlite";

const __ydoc = new Y.Doc();
const __yarray = __ydoc.getArray<Todo>("todos");

const provider = new ExpoSQLitePersistence("TodosDoc", __ydoc);
provider.whenSynced.then(() => {
  console.log("content finished loading from database.");
});

Package Sidebar

Install

npm i y-expo-sqlite

Weekly Downloads

5

Version

0.1.0

License

MIT

Unpacked Size

12.6 kB

Total Files

9

Last publish

Collaborators

  • brentvatne