UNPKG

react95-native

Version:

Refreshed Windows 95 style UI components for your React Native app

34 lines (31 loc) 1.03 kB
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } import * as React from 'react'; import { View, StyleSheet } from 'react-native'; import { withTheme } from '../../core/theming'; import { Text } from '../..'; const ListSection = ({ children, style, theme, title, titleStyle, ...rest }) => /*#__PURE__*/React.createElement(View, _extends({}, rest, { style: [styles.container, style] }), title && /*#__PURE__*/React.createElement(Text, { theme: theme, bold: true, secondary: true, style: [styles.title, titleStyle] }, title), children); const styles = StyleSheet.create({ container: { padding: 8 }, title: { fontSize: 13, marginVertical: 8 } }); export default withTheme(ListSection); //# sourceMappingURL=ListSection.js.map