mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
12eb44641f
commit
2fbcdad09c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user