-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Linear gradiant in svgxml show a plain color #1110
Comments
Seems gradientUnits="objectBoundingBox" is not working, this seems to work for now: <linearGradient id="linear-gradient" x1="50%" x2="50%" y2="100%">
<stop offset="0" stop-color="#f8ec46"/>
<stop offset="1" stop-color="#f2c52d"/>
</linearGradient> |
Can you try with the latest commit from the master branch? |
msand
pushed a commit
that referenced
this issue
Sep 28, 2019
## [9.9.7](v9.9.6...v9.9.7) (2019-09-28) ### Bug Fixes * add gradientTransform to d.ts ([3f08c46](3f08c46)), closes [#1069](#1069) * handling of gradients without stops ([18828c0](18828c0)), closes [#1099](#1099) * handling of rounded rect ([c12d66e](c12d66e)), closes [#1112](#1112) * units in linear and radial gradients ([70c54e6](70c54e6)), closes [#1110](#1110) [#1118](#1118)
🎉 This issue has been resolved in version 9.9.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The problem seams to be solved! Thank you! |
JackWillie
added a commit
to JackWillie/react-native-svg
that referenced
this issue
Nov 27, 2022
## [9.9.7](software-mansion/react-native-svg@v9.9.6...v9.9.7) (2019-09-28) ### Bug Fixes * add gradientTransform to d.ts ([3f08c46](software-mansion/react-native-svg@3f08c46)), closes [#1069](software-mansion/react-native-svg#1069) * handling of gradients without stops ([18828c0](software-mansion/react-native-svg@18828c0)), closes [#1099](software-mansion/react-native-svg#1099) * handling of rounded rect ([c12d66e](software-mansion/react-native-svg@c12d66e)), closes [#1112](software-mansion/react-native-svg#1112) * units in linear and radial gradients ([70c54e6](software-mansion/react-native-svg@70c54e6)), closes [#1110](software-mansion/react-native-svg#1110) [#1118](software-mansion/react-native-svg#1118)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
I've added an svg with linear gradient using svgxml tag but it doesn't show the gradient, only a plain color, both on ios and android, devices and simulators
Environment info
React native info output:
Library version: 2.5.5
Steps To Reproduce
Import an svg with gradial and render it:
Describe what you expected to happen:
The svg should be showed with the gradient
My svg file contains
The text was updated successfully, but these errors were encountered: