mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Log that bridgeless is enabled (if so) to the console (#42113)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42113 For easier testing/debugging, log something if bridgeless is enabled for the app. This log will show up only once. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D52464640 fbshipit-source-id: 5019a1a6bf4f171a5f1dc4b3b2692db9e07ff43c
This commit is contained in:
1 parent
41d9ed0ef9
commit
b81a081bac
1 file changed
+3
-1
@@ -361,7 +361,9 @@ global.RN$SurfaceRegistry = {
|
||||
setSurfaceProps: AppRegistry.setSurfaceProps,
|
||||
};
|
||||
|
||||
if (global.RN$Bridgeless !== true) {
|
||||
if (global.RN$Bridgeless === true) {
|
||||
console.log('Bridgeless mode is enabled');
|
||||
} else {
|
||||
BatchedBridge.registerCallableModule('AppRegistry', AppRegistry);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user