mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +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:
committed by
Facebook GitHub Bot
parent
41d9ed0ef9
commit
b81a081bac
@@ -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