UNPKG

@quidone/react-native-wheel-picker

Version:

Picker is a UI component for selecting an item from a list of options.

12 lines (11 loc) 448 B
"use strict"; import { createContext, useContext } from 'react'; export const PickerItemHeightContext = /*#__PURE__*/createContext(undefined); export const usePickerItemHeight = () => { const value = useContext(PickerItemHeightContext); if (value === undefined) { throw new Error('usePickerItemHeight must be called from within PickerItemHeightContext.Provider!'); } return value; }; //# sourceMappingURL=PickerItemHeightContext.js.map