import * as React from 'react'; import { Animated, StyleProp, TextStyle } from 'react-native'; export interface BadgeProps { visible: boolean; children?: string | number; size?: number; style?: Animated.WithAnimatedValue>; } export interface BadgeState { opacity: Animated.Value; visible: boolean; } export default class Badge extends React.PureComponent { constructor(props: BadgeProps); UNSAFE_componentWillReceiveProps(nextProps: BadgeProps): void; render(): React.JSX.Element | null; }