import { Text, StyleSheet, View } from 'react-native'; import Animated, { FadeIn, FadeOut } from 'react-native-reanimated'; import type { BadgeProps, FCCWD } from '../../types'; import { applyDefaults } from '../../core/KitraProvider'; const sizes = { medium: { width: 24, height: 24, fontSize: 10, }, small: { width: 10, height: 10, fontSize: 8, }, }; const badgeStyles = StyleSheet.create({ container: { justifyContent: 'center', alignItems: 'center', }, }); const Badge : FCCWD = ( { theme, visible = true, label, size = 'medium', containerStyle, textStyles, borderStyle = 'circular', icon }, ) => ( {visible ? ( {(() => { if (label) { return {label}; } if (icon) { return icon; } return null; })()} ) : null } ); export default applyDefaults(Badge);