Skip to content

Commit 862c719

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Partial React Sync from 241c4467...ad84625f8
Summary: Test sync of facebook/react#18068 - **[ad84625f8](facebook/react@ad84625f8 )**: [Native] Migrate focus/blur to call TextInputState with the host component (#18068) //<Eli White>// - **[edab5c074](facebook/react@edab5c074 )**: Re-throw errors thrown by the renderer at the root in the complete phase (#18029) //<Andrew Clark>// - **[a6dfe9aa4](facebook/react@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
1 parent 3b813ca commit 862c719

12 files changed

+24
-32
lines changed

Libraries/Renderer/implementations/ReactFabric-dev.fb.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -3963,13 +3963,11 @@ var ReactFabricHostComponent =
39633963
var _proto = ReactFabricHostComponent.prototype;
39643964

39653965
_proto.blur = function blur() {
3966-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
3966+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
39673967
};
39683968

39693969
_proto.focus = function focus() {
3970-
ReactNativePrivateInterface.TextInputState.focusTextInput(
3971-
this._nativeTag
3972-
);
3970+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
39733971
};
39743972

39753973
_proto.measure = function measure(callback) {

Libraries/Renderer/implementations/ReactFabric-dev.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -3961,13 +3961,11 @@ var ReactFabricHostComponent =
39613961
var _proto = ReactFabricHostComponent.prototype;
39623962

39633963
_proto.blur = function blur() {
3964-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
3964+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
39653965
};
39663966

39673967
_proto.focus = function focus() {
3968-
ReactNativePrivateInterface.TextInputState.focusTextInput(
3969-
this._nativeTag
3970-
);
3968+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
39713969
};
39723970

39733971
_proto.measure = function measure(callback) {

Libraries/Renderer/implementations/ReactFabric-prod.fb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1540,10 +1540,10 @@ var ReactFabricHostComponent = (function() {
15401540
}
15411541
var _proto = ReactFabricHostComponent.prototype;
15421542
_proto.blur = function() {
1543-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1543+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15441544
};
15451545
_proto.focus = function() {
1546-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1546+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15471547
};
15481548
_proto.measure = function(callback) {
15491549
fabricMeasure(

Libraries/Renderer/implementations/ReactFabric-prod.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1531,10 +1531,10 @@ var ReactFabricHostComponent = (function() {
15311531
}
15321532
var _proto = ReactFabricHostComponent.prototype;
15331533
_proto.blur = function() {
1534-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1534+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15351535
};
15361536
_proto.focus = function() {
1537-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1537+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15381538
};
15391539
_proto.measure = function(callback) {
15401540
fabricMeasure(

Libraries/Renderer/implementations/ReactFabric-profiling.fb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1541,10 +1541,10 @@ var ReactFabricHostComponent = (function() {
15411541
}
15421542
var _proto = ReactFabricHostComponent.prototype;
15431543
_proto.blur = function() {
1544-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1544+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15451545
};
15461546
_proto.focus = function() {
1547-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1547+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15481548
};
15491549
_proto.measure = function(callback) {
15501550
fabricMeasure(

Libraries/Renderer/implementations/ReactFabric-profiling.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1532,10 +1532,10 @@ var ReactFabricHostComponent = (function() {
15321532
}
15331533
var _proto = ReactFabricHostComponent.prototype;
15341534
_proto.blur = function() {
1535-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1535+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15361536
};
15371537
_proto.focus = function() {
1538-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1538+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15391539
};
15401540
_proto.measure = function(callback) {
15411541
fabricMeasure(

Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -4047,13 +4047,11 @@ var ReactNativeFiberHostComponent =
40474047
var _proto = ReactNativeFiberHostComponent.prototype;
40484048

40494049
_proto.blur = function blur() {
4050-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
4050+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
40514051
};
40524052

40534053
_proto.focus = function focus() {
4054-
ReactNativePrivateInterface.TextInputState.focusTextInput(
4055-
this._nativeTag
4056-
);
4054+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
40574055
};
40584056

40594057
_proto.measure = function measure(callback) {

Libraries/Renderer/implementations/ReactNativeRenderer-dev.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -4045,13 +4045,11 @@ var ReactNativeFiberHostComponent =
40454045
var _proto = ReactNativeFiberHostComponent.prototype;
40464046

40474047
_proto.blur = function blur() {
4048-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
4048+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
40494049
};
40504050

40514051
_proto.focus = function focus() {
4052-
ReactNativePrivateInterface.TextInputState.focusTextInput(
4053-
this._nativeTag
4054-
);
4052+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
40554053
};
40564054

40574055
_proto.measure = function measure(callback) {

Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1554,10 +1554,10 @@ var ReactNativeFiberHostComponent = (function() {
15541554
}
15551555
var _proto = ReactNativeFiberHostComponent.prototype;
15561556
_proto.blur = function() {
1557-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1557+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15581558
};
15591559
_proto.focus = function() {
1560-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1560+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15611561
};
15621562
_proto.measure = function(callback) {
15631563
ReactNativePrivateInterface.UIManager.measure(

Libraries/Renderer/implementations/ReactNativeRenderer-prod.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1544,10 +1544,10 @@ var ReactNativeFiberHostComponent = (function() {
15441544
}
15451545
var _proto = ReactNativeFiberHostComponent.prototype;
15461546
_proto.blur = function() {
1547-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1547+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15481548
};
15491549
_proto.focus = function() {
1550-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1550+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15511551
};
15521552
_proto.measure = function(callback) {
15531553
ReactNativePrivateInterface.UIManager.measure(

Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1555,10 +1555,10 @@ var ReactNativeFiberHostComponent = (function() {
15551555
}
15561556
var _proto = ReactNativeFiberHostComponent.prototype;
15571557
_proto.blur = function() {
1558-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1558+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15591559
};
15601560
_proto.focus = function() {
1561-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1561+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15621562
};
15631563
_proto.measure = function(callback) {
15641564
ReactNativePrivateInterface.UIManager.measure(

Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1545,10 +1545,10 @@ var ReactNativeFiberHostComponent = (function() {
15451545
}
15461546
var _proto = ReactNativeFiberHostComponent.prototype;
15471547
_proto.blur = function() {
1548-
ReactNativePrivateInterface.TextInputState.blurTextInput(this._nativeTag);
1548+
ReactNativePrivateInterface.TextInputState.blurTextInput(this);
15491549
};
15501550
_proto.focus = function() {
1551-
ReactNativePrivateInterface.TextInputState.focusTextInput(this._nativeTag);
1551+
ReactNativePrivateInterface.TextInputState.focusTextInput(this);
15521552
};
15531553
_proto.measure = function(callback) {
15541554
ReactNativePrivateInterface.UIManager.measure(

0 commit comments

Comments
 (0)