UNPKG

@nexara/nativeflow

Version:

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

33 lines (32 loc) 871 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ResponsiveCalculations = require("../../helpers/ResponsiveCalculations.js"); var _index = require("../StyledComponents/index.js"); var _jsxRuntime = require("react/jsx-runtime"); const HStack = ({ align = 'center', fWrap = 'wrap', gap = 10, containerStyle, children, ...rest }) => { const viewProps = { gap: (0, _ResponsiveCalculations.horizontalScale)(gap), flexDirection: 'row', alignItems: align, flexWrap: fWrap }; return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, { children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StyledView, { style: [viewProps, containerStyle], ...rest, children: children }) }); }; var _default = exports.default = HStack; //# sourceMappingURL=HStack.js.map