[ART] LinearGradient on Android not working
When i trying fill shape with LinearGradient my shape fills with black color.
Hey antoxi4, thanks for reporting this issue!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
- If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag
react-nativeor for more real time interactions, ask on Discord in the #react-native channel. - If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
- We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!
@antoxi4 React Native doesn't support LinearGradient AFAIK. How are you trying to use it?
@satya164 It is supported ;) https://rnplay.org/apps/5tzUPQ
Aah. ART. Thanks @browniefed :D
ART was very recently released for Android though. If you have any issues with it, please report with code sample. @antoxi4
This is my code)It working on IOS but not working on Android)
<Shape d={HEART} fill={new LinearGradient({'.5': '#F48FB1', '1': '#2196F3'},"128","0","235.3903723704666","58.34866891341897")}/>
Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/art-lineargradient-on-android-not-working
ProductPains helps the community prioritize the most important issues thanks to its voting feature. It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix. We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.
This appears like it will be fixed in RN 0.46: https://github.com/facebook/react-native/commit/36405d13ffc5ec25a2e0cf5d811d0fd767b0dfa5