react-native-awesome-slider
Version:
A versatile, responsive <Slider /> component for React Native and Web.
28 lines • 574 B
JavaScript
import React from 'react';
import { Platform } from 'react-native';
export const HitSlop = ({
top = 10,
right = 10,
bottom = 10,
left = 10,
children
}) => {
if (Platform.OS !== 'web') {
return children;
}
return /*#__PURE__*/React.createElement("div", {
style: {
position: 'relative',
cursor: 'pointer'
}
}, /*#__PURE__*/React.createElement("div", {
style: {
position: 'absolute',
top: -top,
right: -right,
bottom: -bottom,
left: -left
}
}), children);
};
//# sourceMappingURL=hit-slop.js.map