UNPKG

1.04 kBTypeScriptView Raw
1import * as React from 'react';
2import { Image, StyleProp, ViewStyle } from 'react-native';
3import type { ThemeProp } from '../../types';
4export type Props = React.ComponentPropsWithRef<typeof Image> & {
5 /**
6 * @internal
7 */
8 index?: number;
9 /**
10 * @internal
11 */
12 total?: number;
13 style?: StyleProp<ViewStyle>;
14 /**
15 * @optional
16 */
17 theme?: ThemeProp;
18};
19/**
20 * A component to show a cover image inside a Card.
21 *
22 * ## Usage
23 * ```js
24 * import * as React from 'react';
25 * import { Card } from 'react-native-paper';
26 *
27 * const MyComponent = () => (
28 * <Card>
29 * <Card.Cover source={{ uri: 'https://picsum.photos/700' }} />
30 * </Card>
31 * );
32 *
33 * export default MyComponent;
34 * ```
35 *
36 * @extends Image props https://reactnative.dev/docs/image#props
37 */
38declare const CardCover: {
39 ({ index, total, style, theme: themeOverrides, ...rest }: Props): React.JSX.Element;
40 displayName: string;
41};
42export default CardCover;
43export { CardCover };
44//# sourceMappingURL=CardCover.d.ts.map
\No newline at end of file