-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Android] borderColor is broken for transparent colors #3652
Comments
@cosmith Is this still an issue? |
Sorry for the delay, still an issue on 0.16 but I haven't had the time to upgrade to 0.17 or 0.18. |
I'm seeing this in 0.17, however opacity of 0.5 also appears as black. |
I'm also seeing this in 0.17 on Android I've tried a number of combinations...for e.g.
|
Seeing this on master, seems related to color parsing? cc @andreicoman11 |
Can confirm on 0.18, still an issue. |
+1 |
Happening in 0.22 still. Black border for any alpha value except |
Happening still in 0.23.0-rc. It seems like instead of a real opacity being calculated, a different color value is being applied. So, the blacks turn into greys, but are fully opaque. |
Still happening on 0.23-rc1 |
anybody working on this?? |
Still happening on 0.26 on Android |
I have the same issue with 0.26 on ios as well. |
Still happens on 0.27.2 |
@foghina, @andreicoman11, Is fixing this issue scheduled or in a backlog? |
Not that I know of. Added some tags to encourage people to send a PR to fix it :) |
+1 |
Waiting for the fix. |
I'll work on it. anyone who has already started, please let me know here. |
Hi all, I have a pull request to fix this here: #9380 Problem had to do with storing |
Summary: Fix for issue #3652 - Converting from `int` to `float` is lossy for very large numbers, so storing `borderColor` as a single `Spacing` object (which uses `float`) was not working for certain colors. So, this pull request splits `borderColor` into alpha and RGB components, and stores each of these as their own respective `Spacing` objects. *Test Plan* Check out cosmith sample code here that triggers the bug: https://rnplay.org/apps/l1bw2A What currently looks like this: <img width="548" alt="screen shot 2016-08-13 at 6 22 28 pm" src="https://cloud.githubusercontent.com/assets/1630466/17645965/9346f05e-6183-11e6-8d40-3e458b08fd9a.png"> Should look like this (with my fix applied): <img width="543" alt="screen shot 2016-08-13 at 6 20 08 pm" src="https://cloud.githubusercontent.com/assets/1630466/17645968/9c26d1d0-6183-11e6-8759-75a5e99f498a.png"> Closes #9380 Differential Revision: D3716707 Pulled By: foghina fbshipit-source-id: 1164378112e2a58d43c8f5fc671c2efdb64b412b
Closing this due to 8095707 Let's reopen if it's not fixed. |
Summary: Fix for issue facebook#3652 - Converting from `int` to `float` is lossy for very large numbers, so storing `borderColor` as a single `Spacing` object (which uses `float`) was not working for certain colors. So, this pull request splits `borderColor` into alpha and RGB components, and stores each of these as their own respective `Spacing` objects. *Test Plan* Check out cosmith sample code here that triggers the bug: https://rnplay.org/apps/l1bw2A What currently looks like this: <img width="548" alt="screen shot 2016-08-13 at 6 22 28 pm" src="https://cloud.githubusercontent.com/assets/1630466/17645965/9346f05e-6183-11e6-8d40-3e458b08fd9a.png"> Should look like this (with my fix applied): <img width="543" alt="screen shot 2016-08-13 at 6 20 08 pm" src="https://cloud.githubusercontent.com/assets/1630466/17645968/9c26d1d0-6183-11e6-8759-75a5e99f498a.png"> Closes facebook#9380 Differential Revision: D3716707 Pulled By: foghina fbshipit-source-id: 1164378112e2a58d43c8f5fc671c2efdb64b412b
Summary: Fix for issue facebook#3652 - Converting from `int` to `float` is lossy for very large numbers, so storing `borderColor` as a single `Spacing` object (which uses `float`) was not working for certain colors. So, this pull request splits `borderColor` into alpha and RGB components, and stores each of these as their own respective `Spacing` objects. *Test Plan* Check out cosmith sample code here that triggers the bug: https://rnplay.org/apps/l1bw2A What currently looks like this: <img width="548" alt="screen shot 2016-08-13 at 6 22 28 pm" src="https://cloud.githubusercontent.com/assets/1630466/17645965/9346f05e-6183-11e6-8d40-3e458b08fd9a.png"> Should look like this (with my fix applied): <img width="543" alt="screen shot 2016-08-13 at 6 20 08 pm" src="https://cloud.githubusercontent.com/assets/1630466/17645968/9c26d1d0-6183-11e6-8759-75a5e99f498a.png"> Closes facebook#9380 Differential Revision: D3716707 Pulled By: foghina fbshipit-source-id: 1164378112e2a58d43c8f5fc671c2efdb64b412b
Setting
borderColor: "rgba(255, 255, 255, 0.5)"
works butborderColor: "rgba(255, 255, 255, 0.6)"
gives a black border.Expected:
Android:
Sample app: https://rnplay.org/apps/l1bw2A
The text was updated successfully, but these errors were encountered: