1.0.2 • Published 3 years ago

react-whatsapp-text-editor v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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"
>
PropTypeDescription
openboolSet editor state open or closed
emojiTitlestringSet emoji-mart title
onTextfunction(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
onDeletefunctionThis function is called each time that delete button is pressed. It gets no arguments