mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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? https://github.com/facebook/react-native/pull/37410 DiffTrain build for commit https://github.com/facebook/react/commit/a389046a529c6d22ba5895dd7f5d4b0b8d17c345. Reviewed By: hoxyq Differential Revision: D45816985 Pulled By: javache fbshipit-source-id: 592e0f1eb726261335f703502c74a2548f7da2bc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ada6c51943
commit
2c4e809beb
@@ -1 +1 @@
|
||||
67a05d03e38b9837e27c9fe0a673557e63ff03c5
|
||||
a389046a529c6d22ba5895dd7f5d4b0b8d17c345
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* @noformat
|
||||
* @flow
|
||||
* @nolint
|
||||
* @generated SignedSource<<cece19ddbec9f287c995721f49c68977>>
|
||||
* @generated SignedSource<<c1cc197c110e3a49a5e8f6bd5d32b23f>>
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
@@ -24,9 +24,9 @@ if (__DEV__) {
|
||||
ReactFabric = require('../implementations/ReactFabric-prod');
|
||||
}
|
||||
|
||||
if (global.RN$Bridgeless) {
|
||||
global.RN$stopSurface = ReactFabric.stopSurface;
|
||||
} else {
|
||||
global.RN$stopSurface = ReactFabric.stopSurface;
|
||||
|
||||
if (global.RN$Bridgeless !== true) {
|
||||
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user