Skip to content

Commit

Permalink
[0.62] TextInput: remove onTextInput and selectionState props (facebo…
Browse files Browse the repository at this point in the history
  • Loading branch information
sgny authored Mar 27, 2020
1 parent 3990ee9 commit 25706e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
17 changes: 1 addition & 16 deletions src/components/TextInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ type changeEvent =
"text": string,
});
type textInputEvent =
Event.syntheticEvent({
.
"eventCount": int,
"previousText": string,
"range": {
.
"start": int,
"_end": int,
},
"target": int,
"text": string,
});
type editingEvent =
Event.syntheticEvent({
.
Expand Down Expand Up @@ -171,7 +157,6 @@ external make:
~onScroll: scrollEvent => unit=?,
~onSelectionChange: selectionChangeEvent => unit=?,
~onSubmitEditing: editingEvent => unit=?,
~onTextInput: textInputEvent => unit=?,
~placeholder: string=?,
~placeholderTextColor: Color.t=?,
~returnKeyLabel: string=?,
Expand All @@ -196,8 +181,8 @@ external make:
~secureTextEntry: bool=?,
~selection: selection=?,
~selectionColor: Color.t=?,
~selectionState: 'documentSelectionState=?, // TODO
~selectTextOnFocus: bool=?,
~showSoftInputOnFocus: bool=?,
~spellCheck: bool=?,
~textBreakStrategy: [@bs.string] [ | `balanced | `highQuality | `simple]=?,
~textContentType: [@bs.string] [
Expand Down
17 changes: 1 addition & 16 deletions src/components/TextInput.re
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@ type changeEvent =
"text": string,
});

type textInputEvent =
Event.syntheticEvent({
.
"eventCount": int,
"previousText": string,
"range": {
.
"start": int,
"_end": int,
},
"target": int,
"text": string,
});

type editingEvent =
Event.syntheticEvent({
.
Expand Down Expand Up @@ -164,7 +150,6 @@ external make:
~onScroll: scrollEvent => unit=?,
~onSelectionChange: selectionChangeEvent => unit=?,
~onSubmitEditing: editingEvent => unit=?,
~onTextInput: textInputEvent => unit=?,
~placeholder: string=?,
~placeholderTextColor: Color.t=?,
~returnKeyLabel: string=?,
Expand All @@ -189,8 +174,8 @@ external make:
~secureTextEntry: bool=?,
~selection: selection=?,
~selectionColor: Color.t=?,
~selectionState: 'documentSelectionState=?, // TODO
~selectTextOnFocus: bool=?,
~showSoftInputOnFocus: bool=?,
~spellCheck: bool=?,
~textBreakStrategy: [@bs.string] [ | `balanced | `highQuality | `simple]=?,
~textContentType: [@bs.string] [
Expand Down

0 comments on commit 25706e6

Please sign in to comment.