Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transform attribute are not working with react-native #144

Closed
alexmngn opened this issue Jul 20, 2018 · 1 comment
Closed

Transform attribute are not working with react-native #144

alexmngn opened this issue Jul 20, 2018 · 1 comment

Comments

@alexmngn
Copy link

Hello,

It seems like the library keeps the transform property as it for React-Native. However, react-native-svg doesn't support the transform property as it and needs to be replaced by an object syntax.

          <Rect
            width={8.767}
            height={2.425}
            y={2.91}
            rx={1.212}
            transform="rotate(45 4.383 4.123)"
          />

Should become

          <Rect
            width={8.767}
            height={2.425}
            y={2.91}
            rx={1.212}
            transform={{ rotate: '45, 4.383, 4.123' }}
          />

Also, the matrix should also be replaced by translate as per this article: https://medium.com/@richardrosko/matrix-transform-in-svg-in-react-native-53a9357a811b

Is there any plan to support the transform prop?

Thanks

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

No branches or pull requests

2 participants