UNPKG

783 BTypeScriptView Raw
1import React from 'react';
2import { StyleProp, ViewStyle } from 'react-native';
3import { BadgeProps } from './Badge';
4declare type withBadgeOptions = {
5 bottom?: number;
6 left?: number;
7 right?: number;
8 top?: number;
9 hidden?: boolean;
10 containerStyle?: StyleProp<ViewStyle>;
11} & BadgeProps;
12declare const withBadge: (value: string | number | boolean | {} | React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)> | React.ReactNodeArray | React.ReactPortal | ((props: any) => React.ReactNode), options?: withBadgeOptions) => (WrappedComponent: React.ComponentType<any>) => React.ComponentType;
13export default withBadge;