UNPKG

@nexara/nativeflow

Version:

Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.

31 lines (30 loc) 922 B
"use strict"; import { ScrollView } from 'react-native'; import { horizontalScale, verticalScale } from "../../helpers/ResponsiveCalculations.js"; import { StyledView } from "../StyledComponents/index.js"; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; const DialogBody = ({ variant, scrollEnable = true, containerStyle, children, ...rest }) => { const style = { paddingVertical: variant == 'default' ? verticalScale(16) : 0, paddingHorizontal: horizontalScale(variant == 'default' ? 16 : 25) }; return /*#__PURE__*/_jsx(_Fragment, { children: /*#__PURE__*/_jsx(ScrollView, { scrollEnabled: scrollEnable, children: /*#__PURE__*/_jsx(StyledView, { style: [style, containerStyle], pointerEvents: "box-none", ...rest, children: children }) }) }); }; export default DialogBody; //# sourceMappingURL=DialogBody.js.map