Skip to content

Commit

Permalink
Merge pull request #277 from zsomborgellerfi/fix/missing-autocorrect-…
Browse files Browse the repository at this point in the history
…prop

fix: added missing autoCorrect prop
  • Loading branch information
stulip authored Apr 3, 2023
2 parents d2a4d8e + f346f5c commit 62c7282
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ export interface RichEditorProps extends WebViewProps {
*/
disabled?: boolean;

/**
* Boolean value to enable auto-correct. The default value is false.
*/
autoCorrect?: boolean;

/**
* String value to set text auto capitalization.
* See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize
Expand All @@ -54,7 +59,7 @@ export interface RichEditorProps extends WebViewProps {
* String value to set return key type
* See: https://reactnative.dev/docs/textinput#returnkeytype
*/
enterKeyHint?: 'done' | 'go' | 'next' | 'search' | 'send'
enterKeyHint?: 'done' | 'go' | 'next' | 'search' | 'send';

/**
* Boolean value to enable paste as plain text. The default value is false.
Expand Down Expand Up @@ -111,7 +116,7 @@ export interface RichEditorProps extends WebViewProps {
/**
* Callback Enter the position of the cursor
*/
onCursorPosition?: (offsetY: number)=> void;
onCursorPosition?: (offsetY: number) => void;

/**
* Callback after height change
Expand Down Expand Up @@ -202,13 +207,13 @@ export class RichEditor extends React.Component<RichEditorProps> {
* The background color of the selected text
* @param color
*/
setHiliteColor: (color: string)=> void;
setHiliteColor: (color: string) => void;

/**
* The color of the selected text
* @param color
*/
setForeColor: (color: string)=> void;
setForeColor: (color: string) => void;

/**
* $ = document.querySelector
Expand Down

0 comments on commit 62c7282

Please sign in to comment.