Coder Social home page Coder Social logo

react-native-jrtagtext's Introduction

React Native JRTagText

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

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

安装

npm install react-native-jrtagtext --save

用法

    1. 导入

import JRTagText from 'react-native-jrtagtext';

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

属性说明

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

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

react-native-jrtagtext's People

Contributors

tulip09020618 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.