Skip to content

Conversation

kacperzolkiewski
Copy link
Collaborator

@kacperzolkiewski kacperzolkiewski commented Aug 14, 2025

Summary

This PR fixes: #2686

This PR refactors how the transform prop is passed to native components.
Previously, the transform was converted into a transform matrix before being sent to native code. This caused issues when multiple transform attributes were applied, as they did not work correctly.

Changes

Pass the transform prop directly to native components instead of converting it to a transform matrix.
Removed the transformsArrayToProps function, which did not handle transforms correctly.
Added a new stringifyTransformArrayProps function that converts a transform array into an SVG-compatible string (e.g. "rotate(45) translate(10)".

Test Plan

Run the example from issue #2686 and verify if Rect displays correctly.
Run example apps and check if Transforms section displays correctly.

Compatibility

OS Implemented
iOS
MacOS
Android
Web

Checklist

  • I have tested this on a simulator

@kacperzolkiewski kacperzolkiewski force-pushed the transformMultipleAttributes branch from 55375a3 to 8f4e16f Compare August 19, 2025 10:13
@kacperzolkiewski kacperzolkiewski force-pushed the transformMultipleAttributes branch from 607a7c3 to ed77bab Compare August 21, 2025 10:07
@kacperzolkiewski kacperzolkiewski marked this pull request as ready for review August 21, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple attributes in the transform attribute will not take effect

1 participant