import React from 'react'; import { View, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { withTheme } from '../../theme'; import { Header } from '.'; const styles = StyleSheet.create({ container: { marginVertical: 16 } }); const ListSection = React.memo(({ children, title, translateTitle }) => ( {title ?
: null} {children} )); ListSection.propTypes = { children: PropTypes.array.isRequired, title: PropTypes.string, translateTitle: PropTypes.bool }; ListSection.displayName = 'List.Section'; export default withTheme(ListSection);