# react-native-jrtagtext

> 带标签的Text

Latest version **1.0.5** (published 2019-06-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-native-jrtagtext
pnpm add react-native-jrtagtext
yarn add react-native-jrtagtext
bun add react-native-jrtagtext
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-06-11 |
| First published | 2019-06-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | jinrui |
| Keywords | react, native, text |

## Links

- npm: https://www.npmjs.com/package/react-native-jrtagtext
- Repository: https://github.com/tulip09020618/react-native-JRTagText
- Homepage: https://github.com/tulip09020618/react-native-JRTagText#readme
- Issues: https://github.com/tulip09020618/react-native-JRTagText/issues
- npm.io page: https://npm.io/package/react-native-jrtagtext

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-06-11
- 1.0.4 — 2019-06-11
- 1.0.3 — 2019-06-11
- 1.0.2 — 2019-06-11
- 1.0.1 — 2019-06-11

## README

# React Native JRTagText

带标签的Text，效果见下图：

![](./screenshots/2.png)

查看示例代码：[Example/App.js](https://github.com/tulip09020618/react-native-jrtagtext/blob/master/Example/App.js)

## 安装
`npm install react-native-jrtagtext --save`

## 用法
* 1. 导入

`import JRTagText from 'react-native-jrtagtext';`

* 2. 使用

```
<JRTagText 
    tag="标签"
    content="这里放置你想显示的内容。这里放置你想显示的内容。这里放置你想显示的内容。"
/>
```

* 3. 效果：

![](./screenshots/1.png)

## 属性说明
| 属性 | 类型 | 描述 |
| :-: | :-: | :-: |
| tag | String  | 标签，不传或传空字符串，不显示标签 |
| content | String  | 内容 |
| style | View Style Object | 最外层容器属性 |
| contentLineHeight | int | 内容和标签行高（默认为23） |
| tagBackStyle | View Style Object | 设置标签的背景视图属性 |
| tagTextStyle | Text Style Object | 设置标签的文本属性 |
| contentTextStyle | Text Style Object | 设置内容的文本属性 |

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

---
_Source: https://npm.io/package/react-native-jrtagtext · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
