React Native Big Tab Bar: 自定义标签栏组件

React Native Big Tab Bar

该组件允许您创建高度可定制的标签栏,并支持图像和数字徽章。

安装

npm i react-native-big-tab-bar

对等依赖

确保已安装以下依赖项:

  • react >= 16.x.x
  • react-native >= 0.55.x
  • react-native-androw: 0.0.34

使用方法

import BigTabBar from 'react-native-big-tab-bar';


配置属性

| 属性 | 类型 | 默认值 | 描述 |

|--------------|-------|-------|--------------------------------------------|

| tabs | array | - | 设置标签栏项目数组 |

| textStyle | style | - | 设置自定义文本样式 |

| firstSelectedItem | number | 0 | 设置初始选中项索引 |

| height | number | 120 | 更改按钮的高度 |

| width | number | 75 | 更改按钮的宽度 |

| borderRadius | number | - | 设置标签栏圆角半径 |

zip 文件大小:41.81MB