fix: transforms on macOS old arch (#2420)

# Summary

Since `RNSVGPlatformView` on macOS old arch is just `RCTUIView`, we need
to add `updateReactTransformInternal` to `RNSVGSvgView`.

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| MacOS   |          |
This commit is contained in:
Jakub Grzywacz
2024-08-21 15:13:50 +02:00
committed by GitHub
parent 49a99d83b7
commit 9ae2b8c612

View File

@@ -471,6 +471,13 @@ using namespace facebook::react;
return _viewBoxTransform;
}
#if !RCT_NEW_ARCH_ENABLED && TARGET_OS_OSX // [macOS
- (void)updateReactTransformInternal:(CATransform3D)transform
{
[self setTransform:CATransform3DGetAffineTransform(transform)];
}
#endif // macOS]
@end
#ifdef RCT_NEW_ARCH_ENABLED