UNPKG

nexara-nativeflow

Version:

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

41 lines (40 loc) 937 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = require("react"); var _reactNative = require("react-native"); var _index = require("../../hooks/index.js"); var _jsxRuntime = require("react/jsx-runtime"); const StyledView = /*#__PURE__*/(0, _react.forwardRef)(({ f, justify, align, fWrap, bg, themeBg = false, h, w, children, style, ...rest }, ref) => { const theme = (0, _index.useTheme)(themeBg); return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, { style: [{ flex: f, justifyContent: justify, alignItems: align, flexWrap: fWrap, backgroundColor: bg ?? (themeBg ? theme?.colors.secondary : 'transparent'), height: h, width: w }, style], ...rest, ref: ref, children: children }); }); var _default = exports.default = StyledView; //# sourceMappingURL=StyledView.js.map