-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
TouchableOpacity
on Android with elevation
and rgba
background causes clipping/octagons
#32078
Comments
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
I have the same problem in Android 11 |
Any update about this one ? |
I have same problem when use shadows in my buttons, only android |
same here, only Android. |
Still facing this issue... |
This issue only occurs on Android Yes, can reproduce this issue. Using shadow, elevation and associated shadow styles in a view inside TouchableOpacity results in clipping/cutouts/borders/whatever you can name. The solution is to remove shadow and associated shadow styles from the view and add these styles to the main TouchableOpacity container.
Before:
After:
|
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
Android's
TouchableOpacity
has weird clipping/octagons when it's used withelevation
and an alpha channel background color i.ergba(hex, hex, hex, 0.5)
. This is reproducible both in an expo snack, and with a newreact-native init
using 0.65 etc.It seems like this issue is partially covered by #26544 - but it's been open for a few years and has diverged perhaps from the original issue. I've posted a follow up comment there: #26544 (comment)
iOS is fine:
Android is not:
React Native version:
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
npx react-native init
)TouchableOpacity
component and give it some elevation and anrgba
background colorExpected Results
I'd hope that we could have the same behaviour iOS has?
Snack, code example, screenshot, or link to a repository:
Here's a Snack
Here's a mvce using 0.65
The text was updated successfully, but these errors were encountered: