react-native-anchor-parser
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Type Required
string Yes

numberOfLines

numberOfLines for showing lines of string, default is 0

Type Required
int No

stringStyle

style object for text/string

Type Required
object No

linkStyle

style object for link

Type Required
object No

License

MIT

Package Sidebar

Install

npm i react-native-anchor-parser

Weekly Downloads

3

Version

0.0.2

License

ISC

Unpacked Size

8.04 kB

Total Files

7

Last publish

Collaborators

  • anju_dev