-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.d.ts
37 lines (30 loc) · 808 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Type definitions for react-native-icon-badge
// Project: https://github.com/yanqiw/react-native-icon-badge
// Definitions by: Jan Hesters <https://github.com/janhesters>
// TypeScript Version: 3.1
import * as React from "react";
import { StyleProp, ViewStyle } from "react-native";
export interface IconBadgeProps {
/**
* The background element.
*/
MainElement: JSX.Element;
/**
* The badge element, normally it is a Text.
*/
BadgeElement: JSX.Element;
/**
* Customized container (main view) style.
*/
MainViewStyle?: StyleProp<ViewStyle>;
/**
* Customized badge style.
*/
IconBadgeStyle?: StyleProp<ViewStyle>;
/**
* Hides badge.
* @default false
*/
Hidden?: boolean;
}
export default class IconBadge extends React.Component<IconBadgeProps> {}