[0.76][New Arch] Pressable loses background when applying borderless ripple effect #48552
Labels
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
The
Pressable
component loses its backgroundColor and ripple effect whenandroid_ripple
is set withborderless: true
.Notes:
• If
Pressable
is the only component in the app or if all parent components have transparent backgrounds, the ripple effect works as expected. However, this scenario is not realistic.Edit 1:
Crazy thing: if you add
overflow: hidden
to the parent, the Pressable background and ripple works again for some reason. But again, only if the parent and pressable are in the root.I have two snacks:
Using SDK 51 (old arch), this is working fine:
https://snack.expo.dev/@wfern/android-pressable-borderless-sdk-51
Using SDK 52 (new arch), where the bug happens:
https://snack.expo.dev/@wfern/android-pressable-borderless-sdk-52
Steps to reproduce
In the Snack with SDK 52 set
Pressable
android_ripple borderless totrue
and see it's background and ripple effect disappear.React Native Version
0.76.5
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@wfern/android-pressable-borderless-sdk-52
In this snack set the Pressable ripple borderless to true.
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: