UNPKG

2.18 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.ComponentType<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}, "size" | "visible" | keyof import("react-native").TextProps | keyof React.RefAttributes<import("react-native").Text>> & {
43 theme?: import("@callstack/react-theme-provider").$DeepPartial<ReactNativePaper.Theme> | undefined;
44}> & import("@callstack/react-theme-provider/typings/hoist-non-react-statics").NonReactStatics<React.ComponentType<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}> & (({ children, size, style, theme, visible, ...rest }: Props) => JSX.Element), {}>;
64export default _default;
65
\No newline at end of file