@react-native-hero/styled-text

0.0.5 • Public • Published

@react-native-hero/styled-text

Getting started

Install the library using either Yarn:

yarn add @react-native-hero/styled-text

or npm:

npm install --save @react-native-hero/styled-text

Example

import {
  StyledText,
} from '@react-native-hero/styled-text'

<StyledText
  numberOfLines={2}
  style={{color: 'blue', fontSize: 14}}

  telText="电话"
  telStyle={{color: 'red'}}
  onTelPress={tel => {

  }}
  urlText="链接"
  urlStyle={{color: 'red'}}
  onUrlPress={url => {

  }}
  emailText="邮箱"
  emailStyle={{color: 'red'}}
  onEmailPress={email => {

  }}
  highlightStyle={{color: 'red'}}
>
  请点击https://www.baidu.com,请联系13512345678,请发送邮箱adsadasd@qq.com,高亮<i>关键字</i>
</StyledText>

Package Sidebar

Install

npm i @react-native-hero/styled-text

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

6.31 kB

Total Files

3

Last publish

Collaborators

  • musicode