UNPKG

1.64 kBTypeScriptView Raw
1import * as React from 'react';
2import { View, ViewStyle, StyleProp } from 'react-native';
3declare type Props = React.ComponentPropsWithRef<typeof View> & {
4 /**
5 * Title to show as the header for the section.
6 */
7 title?: string;
8 /**
9 * Content of the `Drawer.Section`.
10 */
11 children: React.ReactNode;
12 style?: StyleProp<ViewStyle>;
13 /**
14 * @optional
15 */
16 theme: ReactNativePaper.Theme;
17};
18declare const _default: React.ComponentType<Pick<import("react-native").ViewProps & React.RefAttributes<View> & {
19 /**
20 * Title to show as the header for the section.
21 */
22 title?: string | undefined;
23 /**
24 * Content of the `Drawer.Section`.
25 */
26 children: React.ReactNode;
27 style?: StyleProp<ViewStyle>;
28 /**
29 * @optional
30 */
31 theme: ReactNativePaper.Theme;
32}, "title" | keyof import("react-native").ViewProps | keyof React.RefAttributes<View>> & {
33 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
34}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<import("react-native").ViewProps & React.RefAttributes<View> & {
35 /**
36 * Title to show as the header for the section.
37 */
38 title?: string | undefined;
39 /**
40 * Content of the `Drawer.Section`.
41 */
42 children: React.ReactNode;
43 style?: StyleProp<ViewStyle>;
44 /**
45 * @optional
46 */
47 theme: ReactNativePaper.Theme;
48}> & {
49 ({ children, title, theme, style, ...rest }: Props): JSX.Element;
50 displayName: string;
51}, {}>;
52export default _default;