border-color opacity level is not visible when a background-color without opacity is set on the same view (iOS) #39286
Labels
Needs: Triage 🔍
Newer Patch Available
Platform: iOS
iOS applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
On a given
<View />
, when applying a background color without opacity, together with a border-color having an opacity level, the border-color appears opaque on iOS, while it appears as expected on Android.As shown on the screenshots below, the border-color has a visual opacity value on Android, but is rendered "opaque" on iOS, as if the opacity of the background-color takes over the opacity of the border-color.
It is possible to workaround that for my case by adding the opaque background on a child View, but I am interested to know whether this is intentional behaviour or not.
React Native Version
0.71.11
Output of
npx react-native info
Steps to reproduce
rgb(255, 0, 0)
)rgba(255, 0, 0, 0.2)
)Snack, screenshot, or link to a repository
https://snack.expo.dev/@flo-sch/react-native-background-vs-border-color-opacity
The text was updated successfully, but these errors were encountered: