1 | import * as React from 'react';
|
2 | import { StyleProp, View, ViewStyle } from 'react-native';
|
3 | declare type Props = React.ComponentPropsWithRef<typeof View> & {
|
4 | /**
|
5 | * Items inside the `Card.Content`.
|
6 | */
|
7 | children: React.ReactNode;
|
8 | /**
|
9 | * @internal
|
10 | */
|
11 | index?: number;
|
12 | /**
|
13 | * @internal
|
14 | */
|
15 | total?: number;
|
16 | /**
|
17 | * @internal
|
18 | */
|
19 | siblings?: Array<string>;
|
20 | style?: StyleProp<ViewStyle>;
|
21 | };
|
22 | /**
|
23 | * A component to show content inside a Card.
|
24 | *
|
25 | * <div class="screenshots">
|
26 | * <figure>
|
27 | * <img class="medium" src="screenshots/card-content-example.png" />
|
28 | * </figure>
|
29 | * </div>
|
30 | *
|
31 | *
|
32 | * ## Usage
|
33 | * ```js
|
34 | * import * as React from 'react';
|
35 | * import { Card, Title, Paragraph } from 'react-native-paper';
|
36 | *
|
37 | * const MyComponent = () => (
|
38 | * <Card>
|
39 | * <Card.Content>
|
40 | * <Title>Card title</Title>
|
41 | * <Paragraph>Card content</Paragraph>
|
42 | * </Card.Content>
|
43 | * </Card>
|
44 | * );
|
45 | *
|
46 | * export default MyComponent;
|
47 | * ```
|
48 | */
|
49 | declare const CardContent: {
|
50 | ({ index, total, siblings, style, ...rest }: Props): JSX.Element;
|
51 | displayName: string;
|
52 | };
|
53 | export default CardContent;
|