# react-native-usemarkdown-chat

> use bold, italic and underline markdown for chat while typing

Latest version **0.2.1** (published 2021-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-usemarkdown-chat
pnpm add react-native-usemarkdown-chat
yarn add react-native-usemarkdown-chat
bun add react-native-usemarkdown-chat
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2021-09-30 |
| First published | 2021-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 26.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Muhammad Numan |
| Maintainers | nomi9995 |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-usemarkdown-chat
- Repository: https://github.com/nomi9995/react-native-usemarkdown-chat
- Homepage: https://github.com/nomi9995/react-native-usemarkdown-chat#readme
- Issues: https://github.com/nomi9995/react-native-usemarkdown-chat/issues
- npm.io page: https://npm.io/package/react-native-usemarkdown-chat

## Dependencies (1)

- [text-encoding-polyfill](https://npm.io/package/text-encoding-polyfill.md) ^0.6.7

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2021-09-30
- 0.2.0 — 2021-09-24

## README

<!-- Title -->
<p align="center">
<img src="/assets/icon.png" alt="alt text" width="150" style="padding-top: 16px; padding-bottom: 16px;" />
</p>

<!-- Header -->

<p align="center">
  <b>use bold, italic and underline markdown for chat while typing</b>
  <br />
</p>

<p align="center">
  <img width="350" src="/assets/demo.gif">
</p>

# [Demo](https://614db906865efbc908490c6f--react-native-usemarkdown-chat-hook.netlify.app/)

## Installation

```sh
npm install react-native-usemarkdown-chat
```

## Usage

```js
import useMarkdown, { textToMarkdown } from 'react-native-usemarkdown-chat';

// ...

const [text, setText] = useMarkdown();
```

**textToMarkdown** function is not hook it is basically text to markdown converter. you can use this for making own custom useState.

## Example Code

```js
import * as React from 'react';

import { StyleSheet, View, TextInput } from 'react-native';
import useMarkdown from 'react-native-usemarkdown-chat';

export default function App() {
  const [text, setText] = useMarkdown();
  return (
    <View style={styles.container}>
      <TextInput style={styles.input} value={text} onChangeText={setText} />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  input: {
    width: '100%',
    height: 100,
    backgroundColor: 'gray',
    fontSize: 30,
  },
});
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

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