import * as React from "react"; import { View, ViewStyle, StyleProp } from "react-native"; import { DefaultTheme } from "styled-components"; declare type Props = React.ComponentPropsWithRef & { /** * Title to show as the header for the section. */ title?: string; /** * Content of the `Drawer.Section`. */ children: React.ReactNode; style?: StyleProp; /** * @optional */ theme?: DefaultTheme; }; /** * A component to group content inside a navigation drawer. * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { DrawerItem } from 'react-native-simple-elements/components/Drawer'; * * const MyComponent = () => { * const [active, setActive] = React.useState(''); * * * return ( * * setActive('first')} * /> * setActive('second')} * /> * * ); * }; * * export default MyComponent; * ``` */ declare const DrawerSection: { ({ children, title, style, ...rest }: Props): JSX.Element; displayName: string; }; export default DrawerSection;