Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/youngjuning/react-native-quill-editor

React Native Quill Rich Text Editor Wrapper
https://github.com/youngjuning/react-native-quill-editor

Last synced: about 2 months ago
JSON representation

React Native Quill Rich Text Editor Wrapper

Awesome Lists containing this project

README

        

# react-native-quill-editor

> 诞生记:https://juejin.cn/post/6867945949788897288

React Native Quill Rich Text Editor Wrapper

## Screenshots

## Install

```sh
$ yarn add react-native-quill-editor
```

Make sure you installed [react-native-webview](https://github.com/react-native-community/react-native-webview)

## Usage

```jsx
import QuillEditor from 'react-native-quill-editor'

const App = () => {
const onChange = (html: string) => {
console.log(html)
}
return (


}
```

## Props

| Name | Type | Default | Description |
| ------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------- |
| defaultValue | string | `""` | Default Vaule(any valid html string) |
| options | object | `{placeholder: '请输入...',modules: {toolbar: [[{ header: [1, 2, false] }], ['bold', 'italic', 'underline'], ['image', 'code-block']]}}` | quill [options](http://t.cn/A64z1U2z) |
| style | ViewStyle | `{}` | container style |
| onChange | `(html: string) => void` | `onChange: () => {}` | onChange Event |