1 | import * as React from 'react';
|
2 | import { Text, TextStyle, StyleProp } from 'react-native';
|
3 | declare 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 | */
|
26 | declare const Headline: (props: Props) => JSX.Element;
|
27 | export default Headline;
|