UNPKG

@nexara/nativeflow

Version:

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

29 lines (28 loc) 705 B
"use strict"; import { horizontalScale } from "../../helpers/ResponsiveCalculations.js"; import { StyledView } from "../StyledComponents/index.js"; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; const HStack = ({ align = 'center', fWrap = 'wrap', gap = 10, containerStyle, children, ...rest }) => { const viewProps = { gap: horizontalScale(gap), flexDirection: 'row', alignItems: align, flexWrap: fWrap }; return /*#__PURE__*/_jsx(_Fragment, { children: /*#__PURE__*/_jsx(StyledView, { style: [viewProps, containerStyle], ...rest, children: children }) }); }; export default HStack; //# sourceMappingURL=HStack.js.map