UNPKG

@ramses-superapp/ramses-ui

Version:
32 lines (31 loc) 728 B
"use strict"; import React from 'react'; import { View } from 'react-native'; import { useTheme } from "../hooks/ThemeProvider.js"; import { jsx as _jsx } from "react/jsx-runtime"; const RsRowView = ({ style, align = 'center', justify = 'flex-start', gap = 0, backgroundColor, children, ...rest }) => { const theme = useTheme(); // Compose the row style const rowStyle = { flexDirection: 'row', alignItems: align, justifyContent: justify, backgroundColor: backgroundColor ?? theme.Background.screen, gap: gap }; return /*#__PURE__*/_jsx(View, { style: [rowStyle, style], ...rest, children: children }); }; export default RsRowView; //# sourceMappingURL=RsRowView.js.map