UNPKG

react-native-ui-lib

Version:

[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg)](https://stand-with-ukraine.pp.ua)

18 lines (17 loc) 643 B
import { PickerProps, PickerValue } from '../types'; interface UsePickerLabelProps extends Pick<PickerProps, 'value' | 'getLabel' | 'getItemLabel' | 'placeholder' | 'accessibilityLabel' | 'accessibilityHint'> { items: { value: string | number; label: string; }[] | null | undefined; } declare const usePickerLabel: (props: UsePickerLabelProps) => { getLabelsFromArray: (value: PickerValue) => string; getLabel: (value: PickerValue) => string | undefined; accessibilityInfo: { accessibilityLabel: string; accessibilityHint: string; }; label: string; }; export default usePickerLabel;