UNPKG

@nexara/nativeflow

Version:

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

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