react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

Scroll is not working on android

Open jobrdelivery opened this issue 1 year ago • 17 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] 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.

jobrdelivery avatar May 04 '23 05:05 jobrdelivery

I'm having the same issue.

KRNM7 avatar May 09 '23 18:05 KRNM7

Same issue for me

galgord avatar May 11 '23 13:05 galgord

Same

Inveth avatar May 12 '23 10:05 Inveth

Same using 5.4.6

AndonMitev avatar May 12 '23 12:05 AndonMitev

same

kriit24 avatar May 14 '23 05:05 kriit24

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

hossein-zare avatar May 14 '23 05:05 hossein-zare

@jobrdelivery Thanks, it works perfectly

@hossein-zare Could you please consider this solution?

vahidvdn avatar May 25 '23 11:05 vahidvdn

sry, i have made my own dropdown picker

kriit24 avatar May 25 '23 11:05 kriit24

@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

DanJamesH avatar Jun 06 '23 06:06 DanJamesH

having the exact issue......

Jonak-Adipta-Kalita avatar Jun 08 '23 02:06 Jonak-Adipta-Kalita

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

senghuotlay avatar Jul 10 '23 05:07 senghuotlay

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

SDamasceno-Dev avatar Jul 26 '23 20:07 SDamasceno-Dev

Hi all, Sorry for my late reply 😶

I'll release a new version soon.

hossein-zare avatar Sep 01 '23 16:09 hossein-zare

Does anyone have problems with the provided solution?

hossein-zare avatar Sep 01 '23 16:09 hossein-zare

Can you release please?

thomasviaud avatar Nov 14 '23 09:11 thomasviaud

@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?

mikehardy avatar Nov 14 '23 14:11 mikehardy

Still not working for me

joshuarichards001 avatar Nov 18 '23 21:11 joshuarichards001