@devvie/bottom-sheet
Version:
The 😎smart , 📦tiny , and 🎗flexible bottom sheet your app craves 🚀
41 lines (39 loc) • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.DEFAULT_HANDLE_BAR_DEFAULT_HEIGHT = void 0;
var _reactNative = require("react-native");
var _jsxRuntime = require("react/jsx-runtime");
/**
* This is the default handle bar component used when no custom handle bar component is provided
*/
const DefaultHandleBar = ({
style,
...otherProps
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
style: materialStyles.dragHandleContainer,
...otherProps,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
style: [materialStyles.dragHandle, style]
})
});
const materialStyles = _reactNative.StyleSheet.create({
dragHandleContainer: {
padding: 18,
width: 50,
alignSelf: 'center'
},
dragHandle: {
height: 4,
width: 32,
backgroundColor: '#49454F',
opacity: 0.4,
alignSelf: 'center',
borderRadius: 50
}
});
// this will be used in `convertHeight` for clamping sheet height
const DEFAULT_HANDLE_BAR_DEFAULT_HEIGHT = exports.DEFAULT_HANDLE_BAR_DEFAULT_HEIGHT = 25; // paddingTop (10) + paddingBottom (10) + height (5)
var _default = exports.default = DefaultHandleBar;
//# sourceMappingURL=index.js.map