mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-05 22:56:11 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user