Skip to content

v0.12.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Nov 11:47

What's Changed

🚀 New Features

  • Photo and Video Fields: Added built-in PhotoField and VideoField renderers with captions, limit display, and camera and library buttons. Capture goes through a new mediaPicker prop on FormRenderer. Without one, the fields show a placeholder, and renderers overrides still take precedence (ac5bfad)
  • Media Picker Integration: Added the mediaPicker option, whose pick function returns the picked items (or an empty array on cancel) and whose errors are shown under the field. The package adds no camera or photo-library dependency (ac5bfad)
  • Media Values: Photo and video values use the same entries as form0-react, with upload_status: 'local', so uploading stays with the app (ac5bfad)

📚 Documentation

  • Photo and Video Guide: Added a README section with an expo-image-picker example of mediaPicker, and removed the old note saying these fields only had placeholder defaults (ac5bfad)
  • Parity Tracker: Updated FORM0_REACT_PARITY.md to list PhotoField and VideoField as built-in (ac5bfad)

🔧 Maintenance

  • Version Bump: Bumped the package version to 0.12.0 (d71e658)
  • Tests: Added tests for the media fields and media value helpers (ac5bfad)

Full Changelog: v0.11.0...v0.12.0