0.0.2 • Published 3 years ago

react-native-anchor-parser v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

react-native-anchor-parser

Installation

# Using npm

npm install react-native-anchor-parser

# Using yarn

yarn add react-native-anchor-parser

Demo

Code provided in Examples folder.

Usage

import { ArchorParser } from 'react-native-anchor-parser'

...

let yourString = `Lorem Ipsum is simply dummy text of the printing and typesetting industry <a href="https://example.com">Example Show1</a> Lorem Ipsum is simply dummy text of the printing and typesetting industry <a href="https://example.com">Example Show1</a> Lorem Ipsum is simply dummy text of the printing and typesetting industry`

...

<ArchorParser
    string={yourString}
    stringStyle={{ fontSize: 20 }}
    linkStyle={{ fontSize: 20, color: '#2980b9' }} />
    

Props

string

string is present default value

TypeRequired
stringYes

numberOfLines

numberOfLines for showing lines of string, default is 0

TypeRequired
intNo

stringStyle

style object for text/string

TypeRequired
objectNo

linkStyle

style object for link

TypeRequired
objectNo

License

MIT