UNPKG

864 BTypeScriptView Raw
1import React from 'react';
2import { TextProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
3import { RneFunctionComponent } from '../helpers';
4export declare type BadgeProps = {
5 containerStyle?: StyleProp<ViewStyle>;
6 badgeStyle?: StyleProp<ViewStyle>;
7 textProps?: TextProps;
8 textStyle?: StyleProp<TextStyle>;
9 value?: React.ReactNode;
10 onPress?: (...args: any[]) => any;
11 Component?: typeof React.Component;
12 status?: 'primary' | 'success' | 'warning' | 'error';
13};
14declare const Badge: RneFunctionComponent<BadgeProps>;
15export { Badge };
16declare const _default: React.FunctionComponent<Omit<BadgeProps & Partial<import("../config").ThemeProps<BadgeProps>>, keyof import("../config").ThemeProps<T>>> | React.ForwardRefExoticComponent<BadgeProps & Partial<import("../config").ThemeProps<BadgeProps>>>;
17export default _default;