UNPKG

@devvie/bottom-sheet

Version:

The 😎smart , 📦tiny , and 🎗flexible bottom sheet your app craves 🚀

38 lines (35 loc) • 977 B
"use strict"; import { StyleSheet, View } from 'react-native'; import { jsx as _jsx } from "react/jsx-runtime"; /** * This is the default handle bar component used when no custom handle bar component is provided */ const DefaultHandleBar = ({ style, ...otherProps }) => /*#__PURE__*/_jsx(View, { style: materialStyles.dragHandleContainer, ...otherProps, children: /*#__PURE__*/_jsx(View, { style: [materialStyles.dragHandle, style] }) }); const materialStyles = 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 export const DEFAULT_HANDLE_BAR_DEFAULT_HEIGHT = 25; // paddingTop (10) + paddingBottom (10) + height (5) export default DefaultHandleBar; //# sourceMappingURL=index.js.map