UNPKG

@nexara/nativeflow

Version:

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

37 lines (36 loc) 779 B
"use strict"; import { forwardRef } from 'react'; import { View } from 'react-native'; import { useTheme } from "../../hooks/index.js"; import { jsx as _jsx } from "react/jsx-runtime"; const StyledView = /*#__PURE__*/forwardRef(({ f, justify, align, fWrap, bg, themeBg = false, h, w, children, style, ...rest }, ref) => { const theme = useTheme(); return /*#__PURE__*/_jsx(View, { style: [{ flex: f, justifyContent: justify, alignItems: align, flexWrap: fWrap, backgroundColor: bg ?? (themeBg ? theme?.colors.background.default : 'transparent'), height: h, width: w }, style], ref: ref, ...rest, children: children }); }); export default StyledView; //# sourceMappingURL=StyledView.js.map