UNPKG

707 BTypeScriptView Raw
1import * as React from 'react';
2import { Text, TextStyle, StyleProp } from 'react-native';
3export declare type Props = React.ComponentProps<typeof Text> & {
4 style?: StyleProp<TextStyle>;
5 children: React.ReactNode;
6};
7/**
8 * Typography component for showing a caption.
9 *
10 * <div class="screenshots">
11 * <img src="screenshots/caption.png" />
12 * </div>
13 *
14 * ## Usage
15 * ```js
16 * import * as React from 'react';
17 * import { Caption } from 'react-native-paper';
18 *
19 * const MyComponent = () => (
20 * <Caption>Caption</Caption>
21 * );
22 *
23 * export default MyComponent;
24 * ```
25 */
26declare const Caption: (props: Props) => React.JSX.Element;
27export default Caption;
28//# sourceMappingURL=Caption.d.ts.map
\No newline at end of file