UNPKG

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