[react-native] Always set RN$stopSurface (#26808)
## 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
This commit is contained in:
parent
67a05d03e3
commit
a389046a52
|
@ -22,9 +22,9 @@ if (__DEV__) {
|
||||||
ReactFabric = require('../implementations/ReactFabric-prod');
|
ReactFabric = require('../implementations/ReactFabric-prod');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (global.RN$Bridgeless) {
|
global.RN$stopSurface = ReactFabric.stopSurface;
|
||||||
global.RN$stopSurface = ReactFabric.stopSurface;
|
|
||||||
} else {
|
if (global.RN$Bridgeless !== true) {
|
||||||
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
|
BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue