@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
35 lines (34 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _reactNative = require("react-native");
var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js");
var _index = require("../StyledComponents/index.js");
var _jsxRuntime = require("react/jsx-runtime");
const DialogBody = ({
variant,
scrollEnable = true,
containerStyle,
children,
...rest
}) => {
const style = {
paddingVertical: variant == 'default' ? (0, _ResponsiveCalculations.verticalScale)(16) : 0,
paddingHorizontal: (0, _ResponsiveCalculations.horizontalScale)(variant == 'default' ? 16 : 25)
};
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
scrollEnabled: scrollEnable,
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, {
style: [style, containerStyle],
pointerEvents: "box-none",
...rest,
children: children
})
})
});
};
var _default = exports.default = DialogBody;
//# sourceMappingURL=DialogBody.js.map