UNPKG

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