콘텐츠로 이동

DateFieldProps — @gj-kit/expo-ui

@gj-kit/expo-ui에서 공개하는 interface입니다. package version 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;
}

이 선언은 매개변수, optionality, 제네릭, 반환값, 공개 union/type 계약의 정본입니다. 호출 전 필요한 환경·권한·오류 경계는 패키지 Golden path와 이 subpath의 import 조건을 함께 확인하세요.

  • 패키지: @gj-kit/expo-ui
  • 버전: 0.8.1
  • 공개 entry: .
  • 소스: GitHub