UNPKG

1.02 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, TextStyle } from 'react-native';
3import type { ThemeProp } from 'src/types';
4import Text from '../Typography/Text';
5export declare type Props = React.ComponentProps<typeof Text> & {
6 /**
7 * @optional
8 */
9 theme?: ThemeProp;
10 /**
11 * Style that is passed to Text element.
12 */
13 style?: StyleProp<TextStyle>;
14 /**
15 * Specifies the largest possible scale a text font can reach.
16 */
17 maxFontSizeMultiplier?: number;
18};
19/**
20 * A component used to display a header in lists.
21 *
22 * ## Usage
23 * ```js
24 * import * as React from 'react';
25 * import { List } from 'react-native-paper';
26 *
27 * const MyComponent = () => <List.Subheader>My List Title</List.Subheader>;
28 *
29 * export default MyComponent;
30 * ```
31 */
32declare const ListSubheader: {
33 ({ style, theme: overrideTheme, maxFontSizeMultiplier, ...rest }: Props): React.JSX.Element;
34 displayName: string;
35};
36export default ListSubheader;
37//# sourceMappingURL=ListSubheader.d.ts.map
\No newline at end of file