Closed
Description
Describe the bug
Under certain conditions on physical Android devices, tapping on <RNPickerSelect />
does not always trigger the dialog menu to show.
The root cause of this issue appears to be rendering a <Picker />
inside of a <TouchableOpacity />
More info: facebook/react-native#25203
To Reproduce
Steps to reproduce the behavior:
- Render a
<RNPickerSelect />
with children - 'react-native-picker-select' then renders using
renderAndroidHeadless()
- On a physical android device, tap the rendered
<RNPickerSelect />
- Observe if this opens up the picker
- Repeat steps 3 and 4, 20 times
- Observe that the picker has not opened 20 times
Expected behavior
After tapping a <RNPickerSelect />
20 times, the picker should have also opened 20 times.
Screenshots
"n/a".
Additional details
- Device: OnePlus 5T
- OS: Android 9
- react-native-picker-select version: 6.6.0
- react-native version: 0.62.2
- expo sdk version: n/a
Reproduction and/or code sample
https://snack.expo.io/@deansimcox/brave-cashew
Note: Please make sure you run this expo snack on an actual android device, the issue is not present when using the Android view on expo.