react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[ART] LinearGradient on Android not working

Open antoxi4 opened this issue 10 years ago • 7 comments

When i trying fill shape with LinearGradient my shape fills with black color.

antoxi4 avatar Jan 08 '16 17:01 antoxi4

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-native or 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!

facebook-github-bot avatar Jan 08 '16 17:01 facebook-github-bot

@antoxi4 React Native doesn't support LinearGradient AFAIK. How are you trying to use it?

satya164 avatar Jan 08 '16 18:01 satya164

@satya164 It is supported ;) https://rnplay.org/apps/5tzUPQ

browniefed avatar Jan 08 '16 18:01 browniefed

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

satya164 avatar Jan 08 '16 18:01 satya164

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")}/>

antoxi4 avatar Jan 08 '16 19:01 antoxi4

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.

mkonicek avatar Apr 10 '16 16:04 mkonicek

This appears like it will be fixed in RN 0.46: https://github.com/facebook/react-native/commit/36405d13ffc5ec25a2e0cf5d811d0fd767b0dfa5

mikelambert avatar Jun 28 '17 10:06 mikelambert