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
This commit is contained in:
Rick Hanlon
2019-10-09 09:33:49 -07:00
committed by Facebook Github Bot
parent 12eb44641f
commit 2fbcdad09c
+2 -2
View File
@@ -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) {