expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
23 lines (22 loc) • 612 B
TypeScript
import * as React from 'react';
import { Animated, type StyleProp, type TextProps, type TextStyle } from 'react-native';
type Props = TextProps & {
/**
* Whether the badge is visible
*/
visible: boolean;
/**
* Content of the `Badge`.
*/
children?: string | number;
/**
* Size of the `Badge`.
*/
size?: number;
/**
* Style object for the tab bar container.
*/
style?: Animated.WithAnimatedValue<StyleProp<TextStyle>>;
};
export declare function Badge({ children, style, visible, size, ...rest }: Props): React.JSX.Element | null;
export {};