-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Description
Description
on Pressable android_ripple={color: XXX} doesn't work correctly.
Here are issues:
- when user configure the android_ripple={color: "#FF0000"} => the ripple color is grey. What ever the configured color is, the color ripple color is always grey (should be red with this sample)
- when user configure the android_ripple={color: "#FFFFFF4F"} (With transparency) => the ripple color is blue. depending of transparency level, the color is sometimes grey ...
- I have also notice that a fast refresh doesn't refresh correctly the ripple color. (maybe it can help to identify the issue, or at least don't fall in that trap)
I checked with default react native Pressable these 3 use cases works fine.
Steps to reproduce
Just define a Pressable with android_ripple={{color}}
<Pressable onPress={() => console.log('onPress')} android_ripple={{color: '#FF0000'}}>
<Text>'Hello World'</Text>
</Pressable>Snack or a link to a repository
https://github.com/freeboub/bug-react-native-gesture-handler-android-ripple-color
Gesture Handler version
2.21.2
React Native version
0.76.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Fabric (New Architecture)
Build type
Release mode
Device
Android emulator
Device model
reproduced on all android devices
Acknowledgements
Yes
AdamRealE
Metadata
Metadata
Assignees
Labels
Platform: AndroidThis issue is specific to AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided