react-native-elements
Version:
React Native Elements & UI Toolkit
19 lines (18 loc) • 725 B
TypeScript
import React from 'react';
import { TextProps, StyleProp, ViewStyle } from 'react-native';
import { Theme } from '../config/theme';
export declare type BadgeProps = {
containerStyle?: StyleProp<ViewStyle>;
badgeStyle?: StyleProp<ViewStyle>;
textProps?: TextProps;
textStyle?: StyleProp<ViewStyle>;
value?: React.ReactNode;
onPress?: (...args: any[]) => any;
Component?: typeof React.Component;
theme?: Theme;
status?: 'primary' | 'success' | 'warning' | 'error';
};
declare const Badge: React.FunctionComponent<BadgeProps>;
export { Badge };
declare const _default: React.FunctionComponent<Omit<BadgeProps, keyof import("../config/ThemeProvider").ThemeProps<T>>>;
export default _default;