1 | import * as React from 'react';
|
2 | import { GestureResponderEvent, StyleProp, TextStyle, View, ViewStyle } from 'react-native';
|
3 | import type { $RemoveChildren, ThemeProp } from '../../types';
|
4 | import { TextRef } from '../Typography/Text';
|
5 | type TitleString = {
|
6 | title: string;
|
7 | titleStyle?: StyleProp<TextStyle>;
|
8 | };
|
9 | type TitleElement = {
|
10 | title: React.ReactNode;
|
11 | titleStyle?: never;
|
12 | };
|
13 | export type Props = $RemoveChildren<typeof View> & {
|
14 | |
15 |
|
16 |
|
17 | title: React.ReactNode;
|
18 | |
19 |
|
20 |
|
21 | titleStyle?: StyleProp<TextStyle>;
|
22 | |
23 |
|
24 |
|
25 | titleRef?: React.RefObject<TextRef>;
|
26 | |
27 |
|
28 |
|
29 |
|
30 | subtitle?: React.ReactNode;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | subtitleStyle?: StyleProp<TextStyle>;
|
36 | |
37 |
|
38 |
|
39 | onPress?: (e: GestureResponderEvent) => void;
|
40 | |
41 |
|
42 |
|
43 | disabled?: boolean;
|
44 | |
45 |
|
46 |
|
47 | color?: string;
|
48 | |
49 |
|
50 |
|
51 | titleMaxFontSizeMultiplier?: number;
|
52 | |
53 |
|
54 |
|
55 | mode?: 'small' | 'medium' | 'large' | 'center-aligned';
|
56 | style?: StyleProp<ViewStyle>;
|
57 | |
58 |
|
59 |
|
60 | theme?: ThemeProp;
|
61 | |
62 |
|
63 |
|
64 | testID?: string;
|
65 | } & (TitleString | TitleElement);
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 |
|
80 |
|
81 |
|
82 |
|
83 | declare const AppbarContent: {
|
84 | ({ color: titleColor, subtitle, subtitleStyle, onPress, disabled, style, titleRef, titleStyle, title, titleMaxFontSizeMultiplier, mode, theme: themeOverrides, testID, ...rest }: Props): React.JSX.Element;
|
85 | displayName: string;
|
86 | };
|
87 | export default AppbarContent;
|
88 | export { AppbarContent };
|
89 |
|
\ | No newline at end of file |