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
| Member | Type | Details |
|---|---|---|
accessibilityLabel | string | Optional. — |
accessibilityHint | string | Optional. — |
decelerationRate | "normal" | "fast" | number | Optional. — |
nestedScrollEnabled | boolean | Optional. — |
containerStyle | StyleProp<ViewStyle> | Optional. — |
selectedIndicatorStyle | StyleProp<ViewStyle> | Optional. — |
itemStyle | StyleProp<ViewStyle> | Optional. — |
itemTextStyle | StyleProp<TextStyle> | Optional. — |
itemHeight | number | Optional. — |
visibleItems | number | Optional. — |
containerProps | Omit<ViewProps, "style"> | Optional. — |
accessibilityIncrementLabel | string | Optional. — |
accessibilityDecrementLabel | string | Optional. — |
options | readonly WheelPickerOption<T>[] | — |
value | T | null | Optional. — |
getOptionKey | (value: T) => string | Optional. Supplies value equality for non-primitive option values. |
defaultIndex | number | Optional. 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 | — |