Skip to content

DateFieldProps — @gj-kit/expo-ui

A public interface from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { DateFieldProps } from '@gj-kit/expo-ui';
interface DateFieldProps {
/** The committed date, or null for empty. Controlled. */
readonly value: CalendarDate | null;
/** Receives the next committed date, or null when the field is emptied. */
readonly onValueChange: (value: CalendarDate | null) => void;
/** Display order of the segments — a permutation of year/month/day. Defaults to year, month, day. */
readonly segmentOrder?: readonly DateFieldSegment[] | undefined;
/** Committed results are clamped to this inclusive lower bound. */
readonly minDate?: CalendarDate | undefined;
/** Committed results are clamped to this inclusive upper bound. */
readonly maxDate?: CalendarDate | undefined;
readonly label?: string | undefined;
/** When set, the borders and helper turn danger-toned; takes precedence over helperText. */
readonly error?: string | undefined;
readonly helperText?: string | undefined;
readonly disabled?: boolean | undefined;
/** Per-segment accessible names. Fall back to UiStrings dateFieldYear/dateFieldMonth/dateFieldDay. */
readonly segmentLabels?: DateFieldSegmentText | undefined;
/** Per-segment placeholders. No default — placeholder copy stays with the application. */
readonly segmentPlaceholders?: DateFieldSegmentText | undefined;
/** FormField-compatible wiring — applied to the group container. */
readonly nativeID?: string | undefined;
readonly accessibilityLabel?: string | undefined;
readonly accessibilityLabelledBy?: string | undefined;
readonly accessibilityHint?: string | undefined;
/** RN Web-only relationship overrides, same contract as TextField. */
readonly 'aria-labelledby'?: string | undefined;
readonly 'aria-describedby'?: string | undefined;
readonly 'aria-errormessage'?: string | undefined;
readonly 'aria-invalid'?: boolean | undefined;
readonly 'aria-required'?: boolean | undefined;
readonly style?: StyleProp<ViewStyle> | undefined;
readonly className?: string | undefined;
readonly labelStyle?: StyleProp<TextStyle> | undefined;
readonly helperStyle?: StyleProp<TextStyle> | undefined;
/** Applied to every segment input after the built-in box styles. */
readonly segmentStyle?: StyleProp<TextStyle> | undefined;
readonly testID?: string | undefined;
readonly unstyled?: never;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub