Package Exports
- react-native-anchorlink
- react-native-anchorlink/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-anchorlink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-anchorlink
Installation
# Using npm
npm install react-native-anchorlink
# Using yarn
yarn add react-native-anchorlink
Demo
Code provided in Examples folder.
Usage
import ArchorParser from 'react-native-anchorlink'
...
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 |
stringStyle
style object for text/string
Type | Required |
---|---|
object | No |
linkStyle
style object for link
Type | Required |
---|---|
object | No |