UNPKG

7.37 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, TextStyle, View, ViewStyle } from 'react-native';
3import type { $RemoveChildren } from '../../types';
4declare type Props = $RemoveChildren<typeof View> & {
5 /**
6 * Custom color for the text.
7 */
8 color?: string;
9 /**
10 * Text for the title.
11 */
12 title: React.ReactNode;
13 /**
14 * Style for the title.
15 */
16 titleStyle?: StyleProp<TextStyle>;
17 /**
18 * Reference for the title.
19 */
20 titleRef?: React.RefObject<Text>;
21 /**
22 * Text for the subtitle.
23 */
24 subtitle?: React.ReactNode;
25 /**
26 * Style for the subtitle.
27 */
28 subtitleStyle?: StyleProp<TextStyle>;
29 /**
30 * Function to execute on press.
31 */
32 onPress?: () => void;
33 style?: StyleProp<ViewStyle>;
34 /**
35 * @optional
36 */
37 theme: ReactNativePaper.Theme;
38};
39declare const _default: React.ComponentType<Pick<$RemoveChildren<typeof View> & {
40 /**
41 * Custom color for the text.
42 */
43 color?: string | undefined;
44 /**
45 * Text for the title.
46 */
47 title: React.ReactNode;
48 /**
49 * Style for the title.
50 */
51 titleStyle?: StyleProp<TextStyle>;
52 /**
53 * Reference for the title.
54 */
55 titleRef?: React.RefObject<Text> | undefined;
56 /**
57 * Text for the subtitle.
58 */
59 subtitle?: React.ReactNode;
60 /**
61 * Style for the subtitle.
62 */
63 subtitleStyle?: StyleProp<TextStyle>;
64 /**
65 * Function to execute on press.
66 */
67 onPress?: (() => void) | undefined;
68 style?: StyleProp<ViewStyle>;
69 /**
70 * @optional
71 */
72 theme: ReactNativePaper.Theme;
73}, "style" | "title" | "pointerEvents" | "color" | "onLayout" | "onPress" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "hitSlop" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "titleStyle" | "subtitle" | "subtitleStyle" | "titleRef"> & {
74 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
75}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<$RemoveChildren<typeof View> & {
76 /**
77 * Custom color for the text.
78 */
79 color?: string | undefined;
80 /**
81 * Text for the title.
82 */
83 title: React.ReactNode;
84 /**
85 * Style for the title.
86 */
87 titleStyle?: StyleProp<TextStyle>;
88 /**
89 * Reference for the title.
90 */
91 titleRef?: React.RefObject<Text> | undefined;
92 /**
93 * Text for the subtitle.
94 */
95 subtitle?: React.ReactNode;
96 /**
97 * Style for the subtitle.
98 */
99 subtitleStyle?: StyleProp<TextStyle>;
100 /**
101 * Function to execute on press.
102 */
103 onPress?: (() => void) | undefined;
104 style?: StyleProp<ViewStyle>;
105 /**
106 * @optional
107 */
108 theme: ReactNativePaper.Theme;
109}> & {
110 ({ color: titleColor, subtitle, subtitleStyle, onPress, style, titleRef, titleStyle, theme, title, ...rest }: Props): JSX.Element;
111 displayName: string;
112}, {}>;
113export default _default;
114declare const AppbarContentWithTheme: React.ComponentType<Pick<$RemoveChildren<typeof View> & {
115 /**
116 * Custom color for the text.
117 */
118 color?: string | undefined;
119 /**
120 * Text for the title.
121 */
122 title: React.ReactNode;
123 /**
124 * Style for the title.
125 */
126 titleStyle?: StyleProp<TextStyle>;
127 /**
128 * Reference for the title.
129 */
130 titleRef?: React.RefObject<Text> | undefined;
131 /**
132 * Text for the subtitle.
133 */
134 subtitle?: React.ReactNode;
135 /**
136 * Style for the subtitle.
137 */
138 subtitleStyle?: StyleProp<TextStyle>;
139 /**
140 * Function to execute on press.
141 */
142 onPress?: (() => void) | undefined;
143 style?: StyleProp<ViewStyle>;
144 /**
145 * @optional
146 */
147 theme: ReactNativePaper.Theme;
148}, "style" | "title" | "pointerEvents" | "color" | "onLayout" | "onPress" | "testID" | "nativeID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "hitSlop" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "titleStyle" | "subtitle" | "subtitleStyle" | "titleRef"> & {
149 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
150}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<$RemoveChildren<typeof View> & {
151 /**
152 * Custom color for the text.
153 */
154 color?: string | undefined;
155 /**
156 * Text for the title.
157 */
158 title: React.ReactNode;
159 /**
160 * Style for the title.
161 */
162 titleStyle?: StyleProp<TextStyle>;
163 /**
164 * Reference for the title.
165 */
166 titleRef?: React.RefObject<Text> | undefined;
167 /**
168 * Text for the subtitle.
169 */
170 subtitle?: React.ReactNode;
171 /**
172 * Style for the subtitle.
173 */
174 subtitleStyle?: StyleProp<TextStyle>;
175 /**
176 * Function to execute on press.
177 */
178 onPress?: (() => void) | undefined;
179 style?: StyleProp<ViewStyle>;
180 /**
181 * @optional
182 */
183 theme: ReactNativePaper.Theme;
184}> & {
185 ({ color: titleColor, subtitle, subtitleStyle, onPress, style, titleRef, titleStyle, theme, title, ...rest }: Props): JSX.Element;
186 displayName: string;
187}, {}>;
188export { AppbarContentWithTheme as AppbarContent };
189
\No newline at end of file