
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
react-native-webview-quill
Advanced tools
*[Quill](https://quilljs.com) component for React Native built using `postMessage` communication and a WebView.*
Quill component for React Native built using
postMessage
communication and a WebView.
npm install react-native-webview-quill
to use you must set a webview provider once on your project
import {providerRegistry} from "react-native-webview-quill"
import {WebView} from 'react-native-webview-quill/src/providers/WebView/ReactNative/index';
providerRegistry.WebViewProvider = WebView
then you can use the Quill
component:
import {Quill} from 'react-native-webview-quill';
All properties are optional.
Property | Description |
---|---|
onContentChange | A callback receiving the quilljs contents as parameter, whenever the contents change. |
options | A quilljs instance config, see their documentation. |
containerStyle | The style property for the inner WebView component, see documentation. |
content | The initial quilljs contents, useful for readonly/viewer component. |
Use this.quill.reloadResources(), to force component to update content.
componentDidUpdate(prevProps, prevState){
if (prevState.delta !== this.state.delta)
this.quill.reloadResources()
}
<Quill
ref={(quill) => { this.quill = quill }}
content={ this.state.delta } />
This example is typescript, though the library works with plain javascript as well.
//Generic Dependencies
import * as React from 'react';
import { StatusBar, View } from 'react-native';
// React native webview quill
import { DeltaStatic, providerRegistry, Quill } from 'react-native-webview-quill';
import { WebView } from 'react-native-webview-quill/src/providers/WebView/ReactNative/index';
// Only once: Set the webview implementation to use
// Should be done once, probably in your index.js
providerRegistry.WebViewProvider = WebView;
// This is a example of a QuillDelta object that describes the
// content and formatting of the richtext editor
// More information at https://quilljs.com/docs/delta/
const defaultOps: DeltaStatic = {
ops: [
{
insert: 'Test',
attributes: {
bold: true,
},
},
],
};
export default class App extends React.Component<{}, { content: DeltaStatic }> {
constructor(props: any) {
super(props);
this.state = {
content: defaultOps,
};
}
public render() {
//Render a full screen quill editor
return (
<View style={{ flex: 1 }}>
<View style={{ height: StatusBar.currentHeight }} />
<Quill
content={
/* the initial content */
this.state.content
}
onContentChange={
/* Callend when an edit is made */
this.onContentChange
}
containerStyle={
/*The style passed to the editor container*/
{ flex: 1 }
}
/>
</View>
);
}
private onContentChange = (content: DeltaStatic) => {
// Save this content
this.setState({ content });
};
}
FAQs
*[Quill](https://quilljs.com) component for React Native built using `postMessage` communication and a WebView.*
The npm package react-native-webview-quill receives a total of 20 weekly downloads. As such, react-native-webview-quill popularity was classified as not popular.
We found that react-native-webview-quill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.