Skip to content

PhotoPicker

Takes or chooses a photo for an image field and uploads it.

Use it for: Adding a photo to a record, inside a Form. It saves into the app’s Supabase bucket, or into Ynch-hosted storage when the field stores "photo". camera adds Take Photo.

  • CategoryInput
  • ChildrenNone
  • DataOne field (bindings.value)
  • ActionNone
Prop Required Accepts What it does
label Yes text, up to 200 characters The visible label, also read by VoiceOver.
required No true or false The form cannot be saved while this is empty.
disabled No true or false Show it greyed out and ignore taps.
camera No true or false Also offer Take Photo, on iPhones that have a camera.

Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options. Every component except Screen accepts when, described in Data-driven look.

From the Photo Notes example project:

{
"id": "snapshot",
"type": "PhotoPicker",
"props": {
"label": "Snapshot (your own Supabase bucket)"
},
"bindings": {
"value": {
"model": "note",
"field": "snapshot"
}
}
}