File tree Expand file tree Collapse file tree 2 files changed +18
-17
lines changed
ReactCommon/react/renderer/uimanager Expand file tree Collapse file tree 2 files changed +18
-17
lines changed Original file line number Diff line number Diff line change @@ -338,19 +338,22 @@ const AppRegistry = {
338338 } ,
339339} ;
340340
341- BatchedBridge . registerCallableModule ( 'AppRegistry' , AppRegistry ) ;
342-
343- if ( __DEV__ ) {
344- const LogBoxInspector = require ( '../LogBox/LogBoxInspectorContainer' ) . default ;
345- AppRegistry . registerComponent ( 'LogBox' , ( ) => LogBoxInspector ) ;
346- } else {
347- AppRegistry . registerComponent (
348- 'LogBox' ,
349- ( ) =>
350- function NoOp ( ) {
351- return null ;
352- } ,
353- ) ;
341+ if ( ! ( global . RN$Bridgeless === true ) ) {
342+ BatchedBridge . registerCallableModule ( 'AppRegistry' , AppRegistry ) ;
343+
344+ if ( __DEV__ ) {
345+ const LogBoxInspector =
346+ require ( '../LogBox/LogBoxInspectorContainer' ) . default ;
347+ AppRegistry . registerComponent ( 'LogBox' , ( ) => LogBoxInspector ) ;
348+ } else {
349+ AppRegistry . registerComponent (
350+ 'LogBox' ,
351+ ( ) =>
352+ function NoOp ( ) {
353+ return null ;
354+ } ,
355+ ) ;
356+ }
354357}
355358
356359module . exports = AppRegistry ;
Original file line number Diff line number Diff line change @@ -25,8 +25,7 @@ void SurfaceRegistryBinding::startSurface(
2525 parameters[" initialProps" ] = initalProps;
2626 parameters[" fabric" ] = true ;
2727
28- if (moduleName != " LogBox" &&
29- runtime.global ().hasProperty (runtime, " RN$SurfaceRegistry" )) {
28+ if (runtime.global ().hasProperty (runtime, " RN$SurfaceRegistry" )) {
3029 auto registry =
3130 runtime.global ().getPropertyAsObject (runtime, " RN$SurfaceRegistry" );
3231 auto method = registry.getPropertyAsFunction (runtime, " renderSurface" );
@@ -59,8 +58,7 @@ void SurfaceRegistryBinding::setSurfaceProps(
5958 parameters[" initialProps" ] = initalProps;
6059 parameters[" fabric" ] = true ;
6160
62- if (moduleName != " LogBox" &&
63- runtime.global ().hasProperty (runtime, " RN$SurfaceRegistry" )) {
61+ if (runtime.global ().hasProperty (runtime, " RN$SurfaceRegistry" )) {
6462 auto registry =
6563 runtime.global ().getPropertyAsObject (runtime, " RN$SurfaceRegistry" );
6664 auto method = registry.getPropertyAsFunction (runtime, " setSurfaceProps" );
You can’t perform that action at this time.
0 commit comments