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 `CardActions`.
|
6 | */
|
7 | children: React.ReactNode;
|
8 | style?: StyleProp<ViewStyle>;
|
9 | };
|
10 | /**
|
11 | * A component to show a list of actions inside a Card.
|
12 | *
|
13 | * <div class="screenshots">
|
14 | * <figure>
|
15 | * <img class="medium" src="screenshots/card-actions.png" />
|
16 | * </figure>
|
17 | * </div>
|
18 | *
|
19 | * ## Usage
|
20 | * ```js
|
21 | * import * as React from 'react';
|
22 | * import { Card, Button } from 'react-native-paper';
|
23 | *
|
24 | * const MyComponent = () => (
|
25 | * <Card>
|
26 | * <Card.Actions>
|
27 | * <Button>Cancel</Button>
|
28 | * <Button>Ok</Button>
|
29 | * </Card.Actions>
|
30 | * </Card>
|
31 | * );
|
32 | *
|
33 | * export default MyComponent;
|
34 | * ```
|
35 | */
|
36 | declare const CardActions: {
|
37 | (props: Props): JSX.Element;
|
38 | displayName: string;
|
39 | };
|
40 | export default CardActions;
|