react-whatsapp-text-editor

1.0.2 • Public • Published

react-whatsapp-editor npm

Instalation

Run npm install react-whatsapp-editor

Usage

import react from "React"
import TextEditor from "react-whatsapp-editor"

...

<TextEditor 
open
onText={(rftText, formattedText)=> { ... } }
onDelete={ ()=> { ... }}
emojiTitle="title"
>
Prop Type Description
open bool Set editor state open or closed
emojiTitle string Set emoji-mart title
onText function([string], string) Function called on each text change. It gets two arguments, noFormated text, that is rtf text being display on screen, and formatedText that's the same text but on WhatsApp rtf format
onDelete function This function is called each time that delete button is pressed. It gets no arguments

Package Sidebar

Install

npm i react-whatsapp-text-editor

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

1.39 MB

Total Files

8

Last publish

Collaborators

  • brianstefanovich