import * as React from "react"; import { Animated, StyleProp, TextStyle } from "react-native"; import { DefaultTheme } from "styled-components"; declare type Props = React.ComponentProps & { /** * Whether the badge is visible */ visible: boolean; /** * Content of the `Badge`. */ children?: string | number; /** * Size of the `Badge`. */ size?: number; style?: StyleProp; ref?: React.RefObject; /** * @optional */ theme?: DefaultTheme; }; /** * Badges are small status descriptors for UI elements. * A badge consists of a small circle, typically containing a number or other short set of characters, that appears in proximity to another object. * *
*
* *
Badge with content
*
*
* *
Badge without content
*
*
* * ## Usage * ```js * import * as React from 'react'; * import Badge from 'react-native-simple-elements/components/Badge'; * * const MyComponent = () => ( * 3 * ); * * export default MyComponent; * ``` */ declare const Badge: ({ children, size, style, visible, ...rest }: Props) => JSX.Element; export default Badge;