UNPKG

react-native-dates-picker

Version:
27 lines 663 B
import React, { memo } from 'react'; import WheelPicker from './WheelNativePicker'; const options = [{ value: 'AM', text: 'AM' }, { value: 'PM', text: 'PM' }]; const PeriodNative = ({ value, setValue = () => {} }) => { return /*#__PURE__*/React.createElement(WheelPicker, { value: value, options: options, onChange: setValue, itemHeight: 44, decelerationRate: "fast" }); }; const customComparator = (prev, next) => { const areEqual = prev.value === next.value && prev.setValue === next.setValue; return areEqual; }; export default /*#__PURE__*/memo(PeriodNative, customComparator); //# sourceMappingURL=period-native.js.map