UNPKG

734 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 subheading.
9 *
10 * <div class="screenshots">
11 * <img src="screenshots/subheading.png" />
12 * </div>
13 *
14 * ## Usage
15 * ```js
16 * import * as React from 'react';
17 * import { Subheading } from 'react-native-paper';
18 *
19 * const MyComponent = () => (
20 * <Subheading>Subheading</Subheading>
21 * );
22 *
23 * export default MyComponent;
24 * ```
25 */
26declare const Subheading: (props: Props) => React.JSX.Element;
27export default Subheading;
28//# sourceMappingURL=Subheading.d.ts.map
\No newline at end of file