UNPKG

628 BTypeScriptView Raw
1import React from 'react';
2export interface TabBarProps {
3 barTintColor?: string;
4 tintColor?: string;
5 unselectedTintColor?: string;
6 /** default: false */
7 animated?: boolean;
8 /** default: false */
9 swipeable?: boolean;
10 /** rn android only**/
11 styles?: any;
12}
13export declare type TabIcon = React.ReactElement<any> | {
14 uri: string;
15};
16export interface TabBarItemProps {
17 badge?: string | number;
18 onPress?: () => void;
19 selected?: boolean;
20 icon?: TabIcon;
21 selectedIcon?: TabIcon;
22 title: string;
23 dot?: boolean;
24 prefixCls?: string;
25 style?: React.CSSProperties;
26}