@devvie/bottom-sheet
Version:
The 😎smart , 📦tiny , and 🎗flexible bottom sheet your app craves 🚀
33 lines (32 loc) • 915 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _react = require("react");
var _reactNative = require("react-native");
var _jsxRuntime = require("react/jsx-runtime");
/**
* This is the overall container view of the bottom sheet
*/const Container = /*#__PURE__*/(0, _react.forwardRef)(({
style,
...otherProps
}, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
ref: ref,
style: [styles.container, style],
...otherProps
}));
const styles = _reactNative.StyleSheet.create({
container: {
position: 'absolute',
justifyContent: 'flex-end',
right: 0,
left: 0,
// required to snap container to bottom of screen, so animation will start from botom to up
bottom: 0,
backgroundColor: 'transparent',
opacity: 1
}
});
var _default = exports.default = Container;
//# sourceMappingURL=index.js.map