import * as React from 'react'; import { View, ViewStyle, StyleProp } from 'react-native'; 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: ReactNativePaper.Theme; }; declare const _default: (React.ComponentClass & { /** * A component to group content inside a navigation drawer. * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { Drawer } from 'react-native-paper'; * * const MyComponent = () => { * const [active, setActive] = React.useState(''); * * * return ( * * setActive('first')} * /> * setActive('second')} * /> * * ); * }; * * export default MyComponent; * ``` */ theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & { ({ children, title, theme, style, ...rest }: Props): JSX.Element; displayName: string; }) | (React.FunctionComponent & { ({ children, title, theme, style, ...rest }: Props): JSX.Element; displayName: string; }), {}>) | (React.FunctionComponent & { /** * A component to group content inside a navigation drawer. * *
*
* *
*
* * ## Usage * ```js * import * as React from 'react'; * import { Drawer } from 'react-native-paper'; * * const MyComponent = () => { * const [active, setActive] = React.useState(''); * * * return ( * * setActive('first')} * /> * setActive('second')} * /> * * ); * }; * * export default MyComponent; * ``` */ theme?: import("@callstack/react-theme-provider").$DeepPartial | undefined; }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass & { ({ children, title, theme, style, ...rest }: Props): JSX.Element; displayName: string; }) | (React.FunctionComponent & { ({ children, title, theme, style, ...rest }: Props): JSX.Element; displayName: string; }), {}>); export default _default;