Instawork / hyperview

Server-driven mobile apps with React Native
https://hyperview.org
MIT License
1.26k stars 66 forks source link

Implement date picker for web #454

Closed flochtililoch closed 1 month ago

flochtililoch commented 2 years ago

Currently, the date picker component is only supported on mobile. We should implement a working fallback for web. See src/core/components/date-time-picker/index.web.js in #456.

adamstep commented 2 years ago

Would it make sense to use the HTML5 version? https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date

flochtililoch commented 2 years ago

yes, most likely. I did give it a try with a simple code change but the UX needs some work. I think we should probably reconsider the extra handling that adds the bottom sheet UI to wrap the date picker, and instead render the field inline, especially now that a non-spinner UI exists on iOS:

Simulator Screen Shot - iPhone 13 mini - 2022-07-17 at 16 49 48

flochtililoch commented 1 month ago

Resolved by #944