diff --git a/packages/react-native/React/Modules/RCTUIManager.mm b/packages/react-native/React/Modules/RCTUIManager.mm index c3d1cf6d724..689b63d077a 100644 --- a/packages/react-native/React/Modules/RCTUIManager.mm +++ b/packages/react-native/React/Modules/RCTUIManager.mm @@ -1248,7 +1248,7 @@ RCT_EXPORT_METHOD( [[RCTComposedViewRegistry alloc] initWithUIManager:strongSelf andRegistry:strongSelf->_viewRegistry]; block(strongSelf, composedViewRegistry); } - } @catch (NSException *exception) { + } @catch (NSException *__unused exception) { RCTLogError(@"Exception thrown while executing UI block: %@", exception); } };