Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui-native
import { NativeDatePicker } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

NativeDatePicker

PropTypeDefaultDescription
onChange*(next: Date) => void—
value*Date—
classNamestring—
disabledboolean—Disable the picker.
formatLabel((d: Date) => string)—Override the rendered button text.
testIDstring—

NativeTimePicker

PropTypeDefaultDescription
onChange*(next: Date) => void—
value*Date—
classNamestring—
disabledboolean—Disable the picker.
formatLabel((d: Date) => string)—Override the rendered button text.
testIDstring—