From 2fbcdad09cc5114e050d84bbf35759df01d18781 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Wed, 9 Oct 2019 09:33:49 -0700 Subject: [PATCH] Revert TextInput back to old setNativeProps API 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 --- Libraries/Components/TextInput/TextInput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 985113de359..2c56ef73206 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -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, }); } @@ -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) {