UNPKG

@nexara/nativeflow

Version:

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

29 lines (28 loc) 737 B
"use strict"; import React, { useMemo } from "react"; import { verticalScale } from "../../helpers/ResponsiveCalculations.js"; import { StyledView } from "../StyledComponents/index.js"; import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime"; const VStack = ({ children, align, gap = 10, style, ...rest }) => { const calculatedGap = useMemo(() => verticalScale(gap), [gap]); const viewProps = { flexDirection: 'column', alignItems: align, gap: calculatedGap }; return /*#__PURE__*/_jsx(_Fragment, { children: /*#__PURE__*/_jsx(StyledView, { style: [viewProps, style], ...rest, children: children }) }); }; export default VStack; //# sourceMappingURL=VStack.js.map