@nexara/nativeflow
Version:
Beautiful, responsive, and customizable UI components for React Native – built for performance and seamless experiences.
41 lines (40 loc) • 939 B
JavaScript
;
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)();
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.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
});
});
var _default = exports.default = StyledView;
//# sourceMappingURL=StyledView.js.map