Skip to content

Commit

Permalink
update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
stulip committed May 25, 2021
1 parent e37ee3b commit 6d78802
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### Added
- `foreColor` & `hiliteColor`
- Add @1x resources to solve the problem that some user resources are not found
- Add `onCursorPosition` Enter the position of the cursor

#1.7.0
### Added
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ The editor component. Simply place this component in your view hierarchy to rece
* `onBlur`
Callback editor blur

* `onCursorPosition`
Callback Enter the position of the cursor
```this.scrollRef.current.scrollTo({y: scrollY - 30, duration: 100, animated: true});```

`RichEditor` also has methods that can be used on its `ref` to set:

* `setContentHTML(html: string)`
Expand Down
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ export interface RichEditorProps extends WebViewProps {
*/
onBlur?: () => void;

/**
* Callback Enter the position of the cursor
*/
onCursorPosition?: (offsetY: number)=> void;

/**
* Callback after height change
*/
Expand Down

0 comments on commit 6d78802

Please sign in to comment.