Skip to content

Commit

Permalink
Revert TextInput back to old setNativeProps API
Browse files Browse the repository at this point in the history
Summary: Reverts D14176217 so we can do the partial React sync in the next diff which removes this API

Reviewed By: TheSavior

Differential Revision: D17828977

fbshipit-source-id: 7dd98c19890aeee0a153746ce65fd3b148b4ca7b
  • Loading branch information
rickhanlonii authored and facebook-github-bot committed Oct 9, 2019
1 parent 12eb446 commit 2fbcdad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,7 +1131,7 @@ const TextInput = createReactClass({
// Make sure to fire the mostRecentEventCount first so it is already set on
// native when the text value is set.
if (this._inputRef && this._inputRef.setNativeProps) {
ReactNative.setNativeProps(this._inputRef, {
this._inputRef.setNativeProps({
mostRecentEventCount: event.nativeEvent.eventCount,
});
}
Expand Down Expand Up @@ -1196,7 +1196,7 @@ const TextInput = createReactClass({
this._inputRef &&
this._inputRef.setNativeProps
) {
ReactNative.setNativeProps(this._inputRef, nativeProps);
this._inputRef.setNativeProps(nativeProps);
}

if (this.props.selectionState && selection) {
Expand Down

0 comments on commit 2fbcdad

Please sign in to comment.