Built-in field renderers
form0-react-native provides native defaults for most public field types defined by form0-core.
Schema behavior and accepted attributes remain defined by the Field catalog.
| Group | Rendered types |
|---|---|
| Text and numbers | TextField, NumericField, CalculatedField |
| Choices | SingleChoiceField, MultiChoiceField, BooleanField |
| Date and time | DateField, TimeField |
| Display and record metadata | LabelField, TitleField, StatusField |
| Signature | SignatureField |
| Photo and video | PhotoField, VideoField |
Section and RepeatableSection are structural nodes handled by FormRenderer through inline or
drilldown navigation rather than the field registry.
FormLinkField is not supported yet and uses a placeholder. Provide an application renderer before
relying on it in production.
Use KNOWN_FIELD_TYPES to inspect the registrable set and getMissingFieldComponentTypes() during
development to detect missing defaults or overrides.
Photo and video fields
PhotoField and VideoField list the attached items with captions, show the field's limits, and
offer camera and library buttons. The binding has no camera or photo-library dependency: pass a
mediaPicker to FormRenderer and the fields call it. Without one they show a placeholder, and
renderers passed through renderers still replace them.
Code
pick receives kind (photo or video), source (camera or library), multiple, limit,
and field. limit is how many more photos the field accepts, or null. Resolve to the picked
items, or to an empty array when the user cancels; the message of a thrown error is shown under
the field. Each item needs a uri, and videos also need a duration in seconds, which
form0-core validates. An optional sources array chooses the buttons. Pickers often return
temporary files, so copy them somewhere permanent if records keep them.
Values use the same entries as form0-react: photo_id or video_id, media_id, filename,
caption, url for the local file, mime_type, size_bytes, client timestamps, and
upload_status: "local". Uploading the files remains an application responsibility.