react-native-ui-lib
Version:
[](https://stand-with-ukraine.pp.ua)
18 lines (17 loc) • 643 B
TypeScript
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;