Tabs
组件引入
该组件依赖@ant-design/react-native的Tabs,在每个标签页内加入FaltList列表实现常用的功能
npm install @ant-design/react-native
import TabCom from "..."
组件功能
- 左右滑动或点击实现标签页
- 每个标签页是FlatList列表,可以自定义内容
props
| Attribute | Description | Type | Accepted values | default |
|---|---|---|---|---|
| style | 样式 | |||
| content | text内容 | String | ||
| color | 文本颜色 | String | ||
| fontSize | 文本大小 | Number | ||
| isHight | 是否高亮 | Boolean | false | |
| hightColor | 文本高亮颜色 | |||
| lineHeight | 行高 | |||
| textSymbol | 分隔规则符号标示 | # | ||
| linkUrl | 跳转链接 | |||
| onPress | 点击事件 | |||
| onLongPress | 长按触发事件 |