UNPKG

@quidone/react-native-wheel-picker

Version:

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

31 lines 771 B
import React, { memo } from 'react'; import { StyleSheet, View } from 'react-native'; const Overlay = _ref => { let { itemHeight, overlayItemStyle } = _ref; return /*#__PURE__*/React.createElement(View, { style: [styles.overlayContainer], pointerEvents: 'none' }, /*#__PURE__*/React.createElement(View, { style: [styles.selection, { height: itemHeight }, overlayItemStyle] })); }; const styles = StyleSheet.create({ overlayContainer: { ...StyleSheet.absoluteFillObject, justifyContent: 'center', alignItems: 'center' }, selection: { opacity: 0.05, backgroundColor: '#000', borderRadius: 8, alignSelf: 'stretch' } }); export default /*#__PURE__*/memo(Overlay); //# sourceMappingURL=Overlay.js.map