diff --git a/packages/react-native/React/Modules/RCTUIManager.m b/packages/react-native/React/Modules/RCTUIManager.m index 14963e7d4a64bf..7027921fda706b 100644 --- a/packages/react-native/React/Modules/RCTUIManager.m +++ b/packages/react-native/React/Modules/RCTUIManager.m @@ -1489,9 +1489,10 @@ static void RCTMeasureLayout(RCTShadowView *view, RCTShadowView *ancestor, RCTRe // lazifyViewManagerConfig function in JS. This fuction uses NativeModules global object that is not available in the // New Architecture. To make native view configs work in the New Architecture we will populate these properties in // native. - moduleConstants[@"Commands"] = viewConfig[@"Commands"]; - moduleConstants[@"Constants"] = viewConfig[@"Constants"]; - + if (RCTGetUseNativeViewConfigsInBridgelessMode()) { + moduleConstants[@"Commands"] = viewConfig[@"Commands"]; + moduleConstants[@"Constants"] = viewConfig[@"Constants"]; + } // Add direct events for (NSString *eventName in viewConfig[@"directEvents"]) { if (!directEvents[eventName]) {