import React from 'react'; import { View, StyleSheet } from 'react-native'; import { withTheme } from '../../theme'; import { Header } from '.'; const styles = StyleSheet.create({ container: { marginVertical: 16 } }); interface IListSection { children: JSX.Element; title: string; translateTitle: boolean; } const ListSection = React.memo(({ children, title, translateTitle }: IListSection) => ( {title ?
: null} {children} )); ListSection.displayName = 'List.Section'; export default withTheme(ListSection);