Skip to main content

ValueWheelPickerProps

No behavioral description is attached to this declaration. The public signature, parameter and return types, and source location below document its published contract.

Kind: Type alias
Package: @ovok/native

Import​

import { ValueWheelPickerProps } from '@ovok/native/picker-sheet';

TypeScript shape​

type ValueWheelPickerProps<T> = Omit<WheelPickerProps, "options" | "selectedIndex" | "onChange"> & {
options: readonly WheelPickerOption<T>[];
value?: T | null;
getOptionKey?: (value: T) => string;
defaultIndex?: number;
onChange: (value: T) => void;
};

This is a type-level export; it has no call parameters.

Public members​

MemberTypeDetails
accessibilityLabelstringOptional. —
accessibilityHintstringOptional. —
decelerationRate"normal" | "fast" | numberOptional. —
nestedScrollEnabledbooleanOptional. —
containerStyleStyleProp<ViewStyle>Optional. —
selectedIndicatorStyleStyleProp<ViewStyle>Optional. —
itemStyleStyleProp<ViewStyle>Optional. —
itemTextStyleStyleProp<TextStyle>Optional. —
itemHeightnumberOptional. —
visibleItemsnumberOptional. —
containerPropsOmit<ViewProps, "style">Optional. —
accessibilityIncrementLabelstringOptional. —
accessibilityDecrementLabelstringOptional. —
optionsreadonly WheelPickerOption<T>[]—
valueT | nullOptional. —
getOptionKey(value: T) => stringOptional. Supplies value equality for non-primitive option values.
defaultIndexnumberOptional. Selects a display-only option when value is unset. It is not reported through onChange until the person manipulates the picker.
onChange(value: T): void—

Source​

View the declaration in the SDK source.