1 | import * as React from 'react';
|
2 | import { ViewStyle, StyleProp, TextStyle } from 'react-native';
|
3 | declare type Props = {
|
4 | |
5 |
|
6 |
|
7 | title: React.ReactNode;
|
8 | |
9 |
|
10 |
|
11 | description?: React.ReactNode;
|
12 | |
13 |
|
14 |
|
15 | left?: (props: {
|
16 | color: string;
|
17 | }) => React.ReactNode;
|
18 | |
19 |
|
20 |
|
21 | right?: (props: {
|
22 | isExpanded: boolean;
|
23 | }) => React.ReactNode;
|
24 | |
25 |
|
26 |
|
27 |
|
28 |
|
29 | expanded?: boolean;
|
30 | |
31 |
|
32 |
|
33 | onPress?: () => void;
|
34 | |
35 |
|
36 |
|
37 | onLongPress?: () => void;
|
38 | |
39 |
|
40 |
|
41 | children: React.ReactNode;
|
42 | |
43 |
|
44 |
|
45 | theme: ReactNativePaper.Theme;
|
46 | |
47 |
|
48 |
|
49 | style?: StyleProp<ViewStyle>;
|
50 | |
51 |
|
52 |
|
53 | titleStyle?: StyleProp<TextStyle>;
|
54 | |
55 |
|
56 |
|
57 | descriptionStyle?: StyleProp<TextStyle>;
|
58 | |
59 |
|
60 |
|
61 |
|
62 | titleNumberOfLines?: number;
|
63 | |
64 |
|
65 |
|
66 |
|
67 | descriptionNumberOfLines?: number;
|
68 | |
69 |
|
70 |
|
71 | id?: string | number;
|
72 | |
73 |
|
74 |
|
75 | testID?: string;
|
76 | };
|
77 | declare const _default: (React.ComponentClass<Pick<Props, "style" | "title" | "children" | "onPress" | "onLongPress" | "testID" | "left" | "right" | "description" | "titleStyle" | "descriptionStyle" | "titleNumberOfLines" | "descriptionNumberOfLines" | "id" | "expanded"> & {
|
78 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
79 | }, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
|
80 | ({ left, right, title, description, children, theme, titleStyle, descriptionStyle, titleNumberOfLines, descriptionNumberOfLines, style, id, testID, onPress, onLongPress, expanded: expandedProp, }: Props): JSX.Element;
|
81 | displayName: string;
|
82 | }) | (React.FunctionComponent<Props> & {
|
83 | ({ left, right, title, description, children, theme, titleStyle, descriptionStyle, titleNumberOfLines, descriptionNumberOfLines, style, id, testID, onPress, onLongPress, expanded: expandedProp, }: Props): JSX.Element;
|
84 | displayName: string;
|
85 | }), {}>) | (React.FunctionComponent<Pick<Props, "style" | "title" | "children" | "onPress" | "onLongPress" | "testID" | "left" | "right" | "description" | "titleStyle" | "descriptionStyle" | "titleNumberOfLines" | "descriptionNumberOfLines" | "id" | "expanded"> & {
|
86 | theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
|
87 | }> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Props, any> & {
|
88 | ({ left, right, title, description, children, theme, titleStyle, descriptionStyle, titleNumberOfLines, descriptionNumberOfLines, style, id, testID, onPress, onLongPress, expanded: expandedProp, }: Props): JSX.Element;
|
89 | displayName: string;
|
90 | }) | (React.FunctionComponent<Props> & {
|
91 | ({ left, right, title, description, children, theme, titleStyle, descriptionStyle, titleNumberOfLines, descriptionNumberOfLines, style, id, testID, onPress, onLongPress, expanded: expandedProp, }: Props): JSX.Element;
|
92 | displayName: string;
|
93 | }), {}>);
|
94 | export default _default;
|