GitXplorerGitXplorer
c

rn-hypertext

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
5495b5b315c5e2dc5658094df466845f5fe1c411

add travis build.

cchenxsan committed 9 years ago
Unverified
6386111fccf03b0f39c61e73a7809bae5ca3dbe4

extract Link component.

cchenxsan committed 9 years ago
Unverified
8c18ac7f8ab27edd0b222a5b56b685a66af1b195

update version.

cchenxsan committed 9 years ago
Unverified
60220054d65b8790fd0d6637e8534343e2288820

update readme.

cchenxsan committed 9 years ago
Unverified
e5917aeafbe0652a5d318469e34411a8583892df

update .npmignore file.

cchenxsan committed 9 years ago
Unverified
ca8f13afb53599b7e63ac3b0d2d7241a4cd1da22

ignore .babelrc file.

cchenxsan committed 9 years ago

README

The README file for this repository.

Build Status

React native hypertext

  1. You have urls (http or https) in plain texts
  2. You want to open them in browser apps

Then you can use RNHypertext in place of Text component from react-native. Or you should just use Text.

Usage

import RNHypertext from 'rn-hypertext'
import React from 'react'
import { View } from 'react-native'
export default class extends React.Component {
  render () {
    return <View><RNHypertext>this is my blog url https://www.zfanw.com/blog, you can open it now.</RNHypertext></View>
  }
}

Props

You can customize link style with linkStyle prop:

<RNHypertext linkStyle={{
  color: 'red',
  fontSize: 20
}}>test</RNHypertext>

linkStyle prop

Demo

rn-hypertext