We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dd487 commit ae676a4Copy full SHA for ae676a4
packages/core/src/Picker/index.tsx
@@ -12,6 +12,7 @@ import {
12
Animated,
13
NativeSyntheticEvent,
14
NativeScrollEvent,
15
+ Platform,
16
} from 'react-native';
17
18
export interface PickerDate {
@@ -143,7 +144,8 @@ const Picker = (props: PickerProps) => {
143
144
onTouchEnd={setScrollY}
145
onScroll={Animated.event([{ nativeEvent: { contentOffset: { y: Y } } }], {
146
listener: (event: NativeSyntheticEvent<NativeScrollEvent>) => {
- if (onPressORonScroll.current === 'onPress' || !isTouchEnd.current) {
147
+ const flag = Platform.OS === 'android' ? false : !isTouchEnd.current;
148
+ if (onPressORonScroll.current === 'onPress' || flag) {
149
return false;
150
}
151
isScroll.current = false;
0 commit comments