UNPKG

523 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: React.ReactNode | ((props: any) => React.ReactNode), options?: withBadgeOptions) => (WrappedComponent: React.ComponentType<any>) => React.ComponentType;
13export default withBadge;