Skip to content

Commit 2c4e809

Browse files
javachefacebook-github-bot
authored andcommitted
Always set RN$stopSurface (#26808)
Summary: ## Summary To support incremental adoption of bridgeless logic we want to default to using these globals whenever they're available. ## How did you test this change? #37410 DiffTrain build for commit react/react@a389046. Reviewed By: hoxyq Differential Revision: D45816985 Pulled By: javache fbshipit-source-id: 592e0f1eb726261335f703502c74a2548f7da2bc
1 parent ada6c51 commit 2c4e809

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
67a05d03e38b9837e27c9fe0a673557e63ff03c5
1+
a389046a529c6d22ba5895dd7f5d4b0b8d17c345

packages/react-native/Libraries/Renderer/shims/ReactFabric.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noformat
88
* @flow
99
* @nolint
10-
* @generated SignedSource<<cece19ddbec9f287c995721f49c68977>>
10+
* @generated SignedSource<<c1cc197c110e3a49a5e8f6bd5d32b23f>>
1111
*/
1212

1313
'use strict';
@@ -24,9 +24,9 @@ if (__DEV__) {
2424
ReactFabric = require('../implementations/ReactFabric-prod');
2525
}
2626

27-
if (global.RN$Bridgeless) {
28-
global.RN$stopSurface = ReactFabric.stopSurface;
29-
} else {
27+
global.RN$stopSurface = ReactFabric.stopSurface;
28+
29+
if (global.RN$Bridgeless !== true) {
3030
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
3131
}
3232

0 commit comments

Comments
 (0)