UNPKG

@kietpt2003/react-native-core-ui

Version:
25 lines 849 B
import { StyleProp, TextStyle, View, ViewStyle } from 'react-native'; import React from 'react'; export type BadgeAnchorOrigin = { vertical?: 'top' | 'bottom'; horizontal?: 'left' | 'right'; }; export type BadgeVariant = 'standard' | 'dot'; export type BadgeOverlap = 'rectangular' | 'circular'; export interface BadgeProps { children: React.ReactNode; badgeContent?: number | string; max?: number; showZero?: boolean; invisible?: boolean; color?: string; variant?: BadgeVariant; overlap?: BadgeOverlap; anchorOrigin?: BadgeAnchorOrigin; contentStyle?: StyleProp<TextStyle>; style?: StyleProp<ViewStyle>; badgeStyle?: StyleProp<ViewStyle>; } declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<View>>; export default Badge; //# sourceMappingURL=Badge.d.ts.map