Local storage and submissions
Included SQLite store
The starter saves structured submitted records with expo-sqlite. Configure or disable it through
the storage block in form0.config.js:
Code
The database lives in the platform-specific application sandbox. Each submission is inserted with
record metadata and the complete structured record as JSON. The included debug controls can list
or clear records when debug is enabled.
Photos and videos
PhotoField and VideoField take photos and videos with the camera or choose them from the
library through src/lib/media-picker.js, which uses expo-image-picker; Form0Form passes it to
FormRenderer as mediaPicker. The picker's own files are temporary, so picked files are copied
into the app's documents folder under form0-media/. Records store each file's local url with
upload_status: "local", and nothing is uploaded. Removing an item from a record does not delete
its file.
Persistence is not synchronization
This store provides on-device persistence only. It does not upload records, retry requests, resolve conflicts, encrypt exports, or define retention and deletion policy. Applications must design those behaviors for their data and threat model. Treat database backups and exported files as sensitive user data.
The Node.js form0-connector-pg and form0-connector-sqlite packages do not run in React Native.
Send remote submissions through an authenticated application API; do not embed database credentials
in a mobile application.
For the renderer submission and snapshot contract, see Values, snapshots, and submission. For general mobile boundaries, see Mobile integration.