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