react-native-webview-quilljs v2.0.0
React Native Webview Quilljs
Quill.js editor and viewer components with no native code for React Native apps.
![]()
Try it in Expo

Installation
npm install --save react-native-webview-quilljsor
yarn add react-native-webview-quilljsand then
import {WebViewQuillEditor, WebViewQuillViewer} from 'react-native-webview-quilljs'Usage
This package can be used to create both an editor and a viewer
Creating a Quill.js editor with the standard toolbar:
 <WebViewQuillEditor
            ref={component => (this.webViewQuillEditor = component)}
            getDeltaCallback={this.getDeltaCallback}
            contentToDisplay={contentToDisplay}
            onLoad={this.onLoadCallback}
          />This component accepts the following props:
- ref
 - getDeltaCallback
 - contentToDisplay
 
| Name | Required | Description | 
|---|---|---|
| ref | yes | A reference to the editor componment to be used to retrieve its contents using this.webViewQuillEditor.getDelta(); | 
| getDeltaCallback | yes | Function called in response to a call to this.webViewQuillEditor.getDelta(). It will receive a Delta object containing the contents of editor | 
| contentToDisplay | no | A Delta object that will be displayed by the editor when it mounts | 
| onLoad | no | A function called when the Editor finishes loading | 
Creating a Delta viewer that can display content created with Quill.js:
<WebViewQuillViewer
            ref={component => (this.webViewQuillViewer = component)}
            contentToDisplay={this.state.messageDelta}
            onLoad={this.onLoadCallback}
          />This component accepts the following props:
- ref
 - contentToDisplay
 
| Name | Required | Description | 
|---|---|---|
| ref | yes | A reference to the editor componment to be used to update its contents using this.webViewQuillViewer.sendContentToViewer(delta); | 
| contentToDisplay | no | A Delta object that will be displayed by the viewer when it mounts | 
| onLoad | no | A function called when the Editor finishes loading | 
LICENSE
MIT
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago