software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

Transparent background removes border for touchables #3088

Closed JoshuaJADaniel closed 2 months ago

JoshuaJADaniel commented 2 months ago

Description

Setting backgroundColor to a transparent-ish value in any touchable causes border styles to be discarded in Android.

image

Steps to reproduce

  1. Open the Snack
  2. Select Android
  3. Run either locally or online

Snack or a link to a repository

https://snack.expo.dev/@joshuajadaniel/rngh---background-color-effect-on-border-rendering

Gesture Handler version

~2.16.1

React Native version

0.74.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

Real device

Device model

Samsung Galaxy S22

Acknowledgements

Yes

kacperzolkiewski commented 2 months ago

Hi @JoshuaJADaniel! Could you please check if this PR helps?