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:
Kevin Gozali
2024-01-02 13:53:05 -08:00
committed by Facebook GitHub Bot
parent 41d9ed0ef9
commit b81a081bac
+3 -1
View File
@@ -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);
}