GitXplorerGitXplorer
c

rn-hypertext

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
43f542fc2b4b916c31e03809fa5d763e7279bbfa

fix bug

cchenxsan committed 9 years ago
Unverified
46319596eea52e21c2c20ede44360193ea7dc771

fix bug.

cchenxsan committed 9 years ago
Unverified
a5b4480f53a2e004a958699be2b1cc44793ebc46

fix bug.

cchenxsan committed 9 years ago
Unverified
c04b6d6fe725069369a53dfb5d27182381bd0f64

add test of Link component.

cchenxsan committed 9 years ago
Unverified
7048a6cea34dac12dea8b738c58fd05003aa2746

add `linkStyle` screenshot.

cchenxsan committed 9 years ago
Unverified
c6cb6605e82b549966691cb203ada54610dd79f0

add travis-ci build status.

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