diff --git a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm index ad9c47d161e9..7e50ea225406 100644 --- a/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +++ b/packages/react-native/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm @@ -571,7 +571,7 @@ - (void)updateLayoutMetrics:(const LayoutMetrics &)layoutMetrics _backgroundColorLayer.frame = CGRectMake(0, 0, self.layer.bounds.size.width, self.layer.bounds.size.height); } - if ((_props->transformOrigin.isSet() || _props->transform.operations.size() > 0) && + if ((_props->transformOrigin.isSet() || !_props->transform.operations.empty()) && layoutMetrics.frame.size != oldLayoutMetrics.frame.size) { auto newTransform = _props->resolveTransform(layoutMetrics); self.layer.transform = RCTCATransform3DFromTransformMatrix(newTransform); diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm index 1fab2861ff5e..aec234848292 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.mm @@ -75,7 +75,7 @@ NSString *getJSMethodName(const RCTMethodInfo *methodInfo) { std::string jsName = methodInfo->jsName; - if (jsName != "") { + if (!jsName.empty()) { return @(jsName.c_str()); } diff --git a/packages/react-native/ReactCommon/react/renderer/animations/utils.h b/packages/react-native/ReactCommon/react/renderer/animations/utils.h index e31923c2969c..af238c19d005 100644 --- a/packages/react-native/ReactCommon/react/renderer/animations/utils.h +++ b/packages/react-native/ReactCommon/react/renderer/animations/utils.h @@ -37,7 +37,7 @@ static inline void handleShouldFirstComeBeforeSecondRemovesOnly( } } - if (removeMutationsByTag.size() == 0) { + if (removeMutationsByTag.empty()) { return; }