Expo Book Demo
The fastest way to see Hypertill DB working in a real app is the TypeScript Expo example:
What the demo covers
- a
Booksscreen with create, edit, delete, and navigation actions - a
Chaptersscreen scoped to one book - a
Notesflow for both book notes and chapter notes - a dedicated
src/dbfolder for schema, models, migrations, and database bootstrap createPlatformAdapter(...)+DatabasebootstrapDatabaseProviderat the app root- auto-generated
hooksfor reactive reads
Why it matters
The demo is the clearest reference for the current package story:
- Expo app
- TypeScript only
- native Android and iOS builds
- published package consumption through
@hypertill/db
What to read first in the demo repo
App.tsxforDatabaseProvidersrc/db/schema.tsfor the table layoutsrc/db/models.tsfor models and relationssrc/db/index.tsforcreatePlatformAdapter(...)andDatabasesrc/screens/*.tsxfor current React usage
What the React style looks like today
The example matches the guidance in this docs site:
- reactive reads use
hooks - writes use
useDatabaseor model@writermethods withObservablesis still available for custom reactive composition- advanced inline queries pass
inputsso they stay reactive without hook memo boilerplate
Use it as a comparison target
If your own app looks similar in structure, you are probably on the right path:
- do you keep database code in
src/db/? - do schema and models stay out of UI files?
- is the app wrapped once with
DatabaseProvider? - are writes happening inside
database.write(...)or@writermethods? - are advanced inline queries using
inputs?