Partial React Sync from 241c4467...ad84625f8

Summary:
Test sync of https://github.com/facebook/react/pull/18068

- **[ad84625f8](https://github.com/facebook/react/commit/ad84625f8 )**: [Native] Migrate focus/blur to call TextInputState with the host component (#18068) //<Eli White>//
- **[edab5c074](https://github.com/facebook/react/commit/edab5c074 )**: Re-throw errors thrown by the renderer at the root in the complete phase (#18029) //<Andrew Clark>//
- **[a6dfe9aa4](https://github.com/facebook/react/commit/a6dfe9aa4 )**: [Native] Delete NativeComponent and NativeMethodsMixin (#18036) //<Eli White>//

Changelog:
[Changed][General] Partial React Sync from 241c4467...ad84625f8

Reviewed By: mdvacca

Differential Revision: D19459322

fbshipit-source-id: daefcf854e3da1c849f8376671065c53a1319ef9
This commit is contained in:
Eli White
2020-02-19 15:28:59 -08:00
committed by Facebook Github Bot
parent 3b813cade1
commit 862c71908c
12 changed files with 24 additions and 32 deletions
@@ -3963,13 +3963,11 @@ var ReactFabricHostComponent =
var _proto = ReactFabricHostComponent.prototype;
_proto.blur = function blur() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function focus() {
ReactNativePrivateInterface.TextInputState.focusTextInput(
this._nativeTag
);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function measure(callback) {
@@ -3961,13 +3961,11 @@ var ReactFabricHostComponent =
var _proto = ReactFabricHostComponent.prototype;
_proto.blur = function blur() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function focus() {
ReactNativePrivateInterface.TextInputState.focusTextInput(
this._nativeTag
);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function measure(callback) {
@@ -1540,10 +1540,10 @@ var ReactFabricHostComponent = (function() {
}
var _proto = ReactFabricHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
fabricMeasure(
@@ -1531,10 +1531,10 @@ var ReactFabricHostComponent = (function() {
}
var _proto = ReactFabricHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
fabricMeasure(
@@ -1541,10 +1541,10 @@ var ReactFabricHostComponent = (function() {
}
var _proto = ReactFabricHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
fabricMeasure(
@@ -1532,10 +1532,10 @@ var ReactFabricHostComponent = (function() {
}
var _proto = ReactFabricHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
fabricMeasure(
@@ -4047,13 +4047,11 @@ var ReactNativeFiberHostComponent =
var _proto = ReactNativeFiberHostComponent.prototype;
_proto.blur = function blur() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function focus() {
ReactNativePrivateInterface.TextInputState.focusTextInput(
this._nativeTag
);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function measure(callback) {
@@ -4045,13 +4045,11 @@ var ReactNativeFiberHostComponent =
var _proto = ReactNativeFiberHostComponent.prototype;
_proto.blur = function blur() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function focus() {
ReactNativePrivateInterface.TextInputState.focusTextInput(
this._nativeTag
);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function measure(callback) {
@@ -1554,10 +1554,10 @@ var ReactNativeFiberHostComponent = (function() {
}
var _proto = ReactNativeFiberHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
ReactNativePrivateInterface.UIManager.measure(
@@ -1544,10 +1544,10 @@ var ReactNativeFiberHostComponent = (function() {
}
var _proto = ReactNativeFiberHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
ReactNativePrivateInterface.UIManager.measure(
@@ -1555,10 +1555,10 @@ var ReactNativeFiberHostComponent = (function() {
}
var _proto = ReactNativeFiberHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
ReactNativePrivateInterface.UIManager.measure(
@@ -1545,10 +1545,10 @@ var ReactNativeFiberHostComponent = (function() {
}
var _proto = ReactNativeFiberHostComponent.prototype;
_proto.blur = function() {
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
};
_proto.focus = function() {
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
};
_proto.measure = function(callback) {
ReactNativePrivateInterface.UIManager.measure(