UNPKG

@oxyhq/services

Version:

Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀

30 lines (29 loc) • 659 B
"use strict"; import { View, StyleSheet } from 'react-native'; import SectionTitle from './SectionTitle'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; const Section = ({ title, theme, children, isFirst = false, style }) => { return /*#__PURE__*/_jsxs(View, { style: [styles.section, isFirst && styles.firstSection, style], children: [title && /*#__PURE__*/_jsx(SectionTitle, { title: title, theme: theme }), children] }); }; const styles = StyleSheet.create({ section: { marginBottom: 10 }, firstSection: { marginTop: 8 } }); export default Section; //# sourceMappingURL=Section.js.map