hossein-zare / react-native-dropdown-picker

A single / multiple, categorizable, customizable, localizable and searchable item picker (drop-down) component for react native which supports both Android & iOS.
https://hossein-zare.github.io/react-native-dropdown-picker-website/
MIT License
970 stars 294 forks source link

Scroll is not working on android #668

Open jobrdelivery opened 1 year ago

jobrdelivery commented 1 year ago

Hi! ๐Ÿ‘‹

Firstly, thanks for your work on this project! ๐Ÿ™‚

Today I used patch-package to patch react-native-dropdown-picker@5.4.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-dropdown-picker/src/components/Picker.js b/node_modules/react-native-dropdown-picker/src/components/Picker.js
index 9bbacc7..bc84de6 100644
--- a/node_modules/react-native-dropdown-picker/src/components/Picker.js
+++ b/node_modules/react-native-dropdown-picker/src/components/Picker.js
@@ -14,10 +14,10 @@ import {
     TouchableOpacity,
     Text,
     Image,
-    FlatList,
+    // FlatList,
     TextInput,
     Dimensions,
-    ScrollView,
+    // ScrollView,
     Modal,
     ActivityIndicator,
     BackHandler,
@@ -25,6 +25,8 @@ import {
     StyleSheet,
 } from 'react-native';

+import { FlatList, ScrollView } from 'react-native-gesture-handler';
+
 const { height: WINDOW_HEIGHT } = Dimensions.get('window');

 import Colors from '../constants/colors';

This issue body was partially generated by patch-package.

KRNM7 commented 1 year ago

I'm having the same issue.

galgord commented 1 year ago

Same issue for me

Inveth commented 1 year ago

Same

AndonMitev commented 1 year ago

Same using 5.4.6

kriit24 commented 1 year ago

same

hossein-zare commented 1 year ago

https://github.com/hossein-zare/react-native-dropdown-picker/issues/647#issuecomment-1502399905

vahidvdn commented 1 year ago

@jobrdelivery Thanks, it works perfectly

@hossein-zare Could you please consider this solution?

kriit24 commented 1 year ago

sry, i have made my own dropdown picker

DanJamesH commented 1 year ago

@hossein-zare I am having the same issue. Makes package unusable. Urgently need a release. Solution is already suggested at the top. Thanks for hard work

Jonak-Adipta-Kalita commented 1 year ago

having the exact issue......

senghuotlay commented 12 months ago

use the "react-native-dropdown-picker": "^5.4.7-beta.1",

SDamasceno-Dev commented 11 months ago

In my case, I fixed this issue with these steps: 1- My project already had react-native-gesture-handler in version 2.4.0; 2- I installed react-native-dropdown-picker@^5.4.7-beta.1; 3- I placed the z-index in the view that surrounds the DropDown component (only here);

Voila, everything works perfectly now

hossein-zare commented 10 months ago

Hi all, Sorry for my late reply ๐Ÿ˜ถ

I'll release a new version soon.

hossein-zare commented 10 months ago

Does anyone have problems with the provided solution?

thomasviaud commented 7 months ago

Can you release please?

mikehardy commented 7 months ago

@thomasviaud releases are great but with open-source + node there is no need to helplessly wait around - either https://github.com/ds300/patch-package or https://yarnpkg.com/features/patching and move on yes?

joshuarichards001 commented 7 months ago

Still not working for me