1.0.0 • Published 5 years ago

jrtagtext v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

React Native JRTagText

带标签的Text,效果见下图:

npm.io

查看示例代码:Example/App.js

安装

npm install react-native-jrtagtext --save

用法

    1. 导入

import JRTagText from 'react-native-jrtagtext';

    1. 使用
<JRTagText 
    tag="标签"
    content="这里放置你想显示的内容。这里放置你想显示的内容。这里放置你想显示的内容。"
/>
    1. 效果:

npm.io

属性说明

属性类型描述
tagString标签,不传或传空字符串,不显示标签
contentString内容
styleView Style Object最外层容器属性
contentLineHeightint内容和标签行高(默认为23)
tagBackStyleView Style Object设置标签的背景视图属性
tagTextStyleText Style Object设置标签的文本属性
contentTextStyleText Style Object设置内容的文本属性

说明:所有属性均为非必传属性。