@quidone/react-native-wheel-picker
Version:
Picker is a UI component for selecting an item from a list of options.
25 lines (23 loc) • 632 B
JavaScript
;
import React from 'react';
import Picker from '../../base';
import VirtualizedList from './VirtualizedList';
import { jsx as _jsx } from "react/jsx-runtime";
const renderList = props => {
return /*#__PURE__*/_jsx(VirtualizedList, {
...props
});
};
const withVirtualized = WrappedComponent => {
const Wrapper = props => {
return /*#__PURE__*/_jsx(Picker, {
...props,
renderList: renderList
});
};
// @ts-ignore
Wrapper.displayName = `withVirtualized(${WrappedComponent.displayName})`;
return Wrapper;
};
export default withVirtualized;
//# sourceMappingURL=withVirtualized.js.map