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