# react-native-special-text

> This component parses text input for special display needs.

Latest version **1.0.5** (published 2017-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-special-text
pnpm add react-native-special-text
yarn add react-native-special-text
bun add react-native-special-text
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-10-11 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christopher Rathgeb |
| Maintainers | crathgeb |
| Keywords | embeddable, react-native, text, link, text, string, url, parse, links, clickable, tappable, a, href, highlighting |

## Links

- npm: https://www.npmjs.com/package/react-native-special-text
- Repository: https://github.com/Digitova/react-native-special-text
- Issues: https://github.com/Digitova/react-native-special-text/issues
- npm.io page: https://npm.io/package/react-native-special-text

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2017-10-11
- 1.0.4 — 2017-10-09
- 1.0.3 — 2017-10-07
- 1.0.2 — 2017-10-07
- 1.0.1 — 2017-10-07
- 1.0.0 — 2017-10-03

## README

# react-native-special-text
A react native component that displays text with special enhancements.

The component parses the content of the text and extracts links and visually highlights them.  It also exposes methods for detecting when the link is tapped.

## Example:
This component converts the top message into the bottom message in the image below:

![](screenshots/example.png)


## Installation
You can install this component in your project by typing the following command:

```
npm install react-native-special-text --save
```

## Usage

```
import { SpecialText } from 'react-native-special-text'
```

```
<SpecialText
    containerStyle={Style.postTextContainer}
    textStyle={Style.postText}
    linkStyle={Style.linkStyle}
    underlayColor={"#fcfcfc"}
    onLinkPress={(url) => console.log(url)}
>
    You can input your text here as a child of the component.
    Simply include your URLs here as well.  
    https://github.com/Digitova/react-native-special-text.git
</SpecialText>
```

## Props
| Prop        | Description           |
| :------------- |:-------------| 
| containerStyle | a simple style object for the wrapping container |
| textStyle | a simple style object for the text of the component |
| linkStyle | a simple style object link text. |
| underlayColor | a color string for for background of link when tapped |
| onLinkPress | a function for handling link tap events.  navigate to web browser on your own. |



## License


This component is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/react-native-special-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
