UNPKG

6.51 kBTypeScriptView Raw
1import * as React from 'react';
2import { Animated, StyleProp, TextStyle } from 'react-native';
3declare type Props = React.ComponentProps<typeof Animated.Text> & {
4 /**
5 * Whether the badge is visible
6 */
7 visible?: boolean;
8 /**
9 * Content of the `Badge`.
10 */
11 children?: string | number;
12 /**
13 * Size of the `Badge`.
14 */
15 size?: number;
16 style?: StyleProp<TextStyle>;
17 ref?: React.RefObject<typeof Animated.Text>;
18 /**
19 * @optional
20 */
21 theme: ReactNativePaper.Theme;
22};
23declare const _default: (React.ComponentClass<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
24 /**
25 * Whether the badge is visible
26 */
27 visible?: boolean | undefined;
28 /**
29 * Content of the `Badge`.
30 */
31 children?: string | number | undefined;
32 /**
33 * Size of the `Badge`.
34 */
35 size?: number | undefined;
36 style?: StyleProp<TextStyle>;
37 ref?: React.RefObject<Animated.AnimatedComponent<typeof import("react-native").Text>> | undefined;
38 /**
39 * @optional
40 */
41 theme: ReactNativePaper.Theme;
42}, "ref" | "style" | "children" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onLayout" | "onTextLayout" | "onPress" | "onLongPress" | "testID" | "nativeID" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "visible"> & {
43 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
44}, any> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
45 /**
46 * Whether the badge is visible
47 */
48 visible?: boolean | undefined;
49 /**
50 * Content of the `Badge`.
51 */
52 children?: string | number | undefined;
53 /**
54 * Size of the `Badge`.
55 */
56 size?: number | undefined;
57 style?: StyleProp<TextStyle>;
58 ref?: React.RefObject<Animated.AnimatedComponent<typeof import("react-native").Text>> | undefined;
59 /**
60 * @optional
61 */
62 theme: ReactNativePaper.Theme;
63}, any> & (({ children, size, style, theme, visible, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
64 /**
65 * Whether the badge is visible
66 */
67 visible?: boolean | undefined;
68 /**
69 * Content of the `Badge`.
70 */
71 children?: string | number | undefined;
72 /**
73 * Size of the `Badge`.
74 */
75 size?: number | undefined;
76 style?: StyleProp<TextStyle>;
77 ref?: React.RefObject<Animated.AnimatedComponent<typeof import("react-native").Text>> | undefined;
78 /**
79 * @optional
80 */
81 theme: ReactNativePaper.Theme;
82}> & (({ children, size, style, theme, visible, ...rest }: Props) => JSX.Element)), {}>) | (React.FunctionComponent<Pick<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
83 /**
84 * Whether the badge is visible
85 */
86 visible?: boolean | undefined;
87 /**
88 * Content of the `Badge`.
89 */
90 children?: string | number | undefined;
91 /**
92 * Size of the `Badge`.
93 */
94 size?: number | undefined;
95 style?: StyleProp<TextStyle>;
96 ref?: React.RefObject<Animated.AnimatedComponent<typeof import("react-native").Text>> | undefined;
97 /**
98 * @optional
99 */
100 theme: ReactNativePaper.Theme;
101}, "ref" | "style" | "children" | "size" | "allowFontScaling" | "ellipsizeMode" | "lineBreakMode" | "numberOfLines" | "onLayout" | "onTextLayout" | "onPress" | "onLongPress" | "testID" | "nativeID" | "maxFontSizeMultiplier" | "adjustsFontSizeToFit" | "minimumFontScale" | "suppressHighlighting" | "selectable" | "selectionColor" | "textBreakStrategy" | "dataDetectorType" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "key" | "visible"> & {
102 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
103}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<(React.ComponentClass<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
104 /**
105 * Whether the badge is visible
106 */
107 visible?: boolean | undefined;
108 /**
109 * Content of the `Badge`.
110 */
111 children?: string | number | undefined;
112 /**
113 * Size of the `Badge`.
114 */
115 size?: number | undefined;
116 style?: StyleProp<TextStyle>;
117 ref?: React.RefObject<Animated.AnimatedComponent<typeof import("react-native").Text>> | undefined;
118 /**
119 * @optional
120 */
121 theme: ReactNativePaper.Theme;
122}, any> & (({ children, size, style, theme, visible, ...rest }: Props) => JSX.Element)) | (React.FunctionComponent<Animated.AnimatedProps<import("react-native").TextProps & React.RefAttributes<import("react-native").Text>> & {
123 /**
124 * Whether the badge is visible
125 */
126 visible?: boolean | undefined;
127 /**
128 * Content of the `Badge`.
129 */
130 children?: string | number | undefined;
131 /**
132 * Size of the `Badge`.
133 */
134 size?: number | undefined;
135 style?: StyleProp<TextStyle>;
136 ref?: React.RefObject<Animated.AnimatedComponent<typeof import("react-native").Text>> | undefined;
137 /**
138 * @optional
139 */
140 theme: ReactNativePaper.Theme;
141}> & (({ children, size, style, theme, visible, ...rest }: Props) => JSX.Element)), {}>);
142export default _default;
143
\No newline at end of file