@quidone/react-native-wheel-picker
Version:
Picker is a UI component for selecting an item from a list of options.
20 lines (19 loc) • 930 B
JavaScript
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React from 'react';
import Picker from '../../base';
import VirtualizedList from './VirtualizedList';
const renderList = props => {
return /*#__PURE__*/React.createElement(VirtualizedList, props);
};
const withVirtualized = WrappedComponent => {
const Wrapper = props => {
return /*#__PURE__*/React.createElement(Picker, _extends({}, props, {
renderList: renderList
}));
};
// @ts-ignore
Wrapper.displayName = `withVirtualized(${WrappedComponent.displayName})`;
return Wrapper;
};
export default withVirtualized;
//# sourceMappingURL=withVirtualized.js.map