diff --git a/packages/react-native/React/Modules/RCTUIManager.mm b/packages/react-native/React/Modules/RCTUIManager.mm index c3d1cf6d72409b..689b63d077a39c 100644 --- a/packages/react-native/React/Modules/RCTUIManager.mm +++ b/packages/react-native/React/Modules/RCTUIManager.mm @@ -1248,7 +1248,7 @@ - (void)flushUIBlocksWithCompletion:(void (^)(void))completion [[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); } };