NativeDatePicker
DatePicker / TimePicker — wraps @react-native-community/datetimepicker with platform-correct UX (iOS wheel, Android calendar/clock dialog). NativeDatePicker exposes a date as a Pressable button labeled with the formatted value; tapping presents the platform-native picker. Same pattern for NativeTimePicker. Consumers must install @react-native-community/datetimepicker (peer dep, marked optional). When the dep is missing, the component falls back to a read-only Text label so screens still render — useful for sample/demo apps without native module setup. Optional backend: pass `@expo/ui`'s drop-in picker as `modules.datePicker` (`import DateTimePicker from "@expo/ui/community/datetime-picker"`) on `GenesisModulesProvider` to draw SwiftUI / Jetpack Compose pickers instead. Same props and behavior; the community picker stays the fallback.
packages/ui-native/src/components/date-time-picker.tsx
@marktiderman/genesis-ui-nativeimport { NativeDatePicker } from "@marktiderman/genesis-ui-native";react-docgen-typescript.NativeDatePicker
| Prop | Type | Default | Description |
|---|---|---|---|
| onChange* | (next: Date) => void | — | |
| value* | Date | — | |
| className | string | — | |
| disabled | boolean | — | Disable the picker. |
| formatLabel | ((d: Date) => string) | — | Override the rendered button text. |
| testID | string | — |
NativeTimePicker
| Prop | Type | Default | Description |
|---|---|---|---|
| onChange* | (next: Date) => void | — | |
| value* | Date | — | |
| className | string | — | |
| disabled | boolean | — | Disable the picker. |
| formatLabel | ((d: Date) => string) | — | Override the rendered button text. |
| testID | string | — |