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

Not scrolling on android

Open stereodenis opened this issue 1 year ago • 8 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 e3fb93b..12eb5ed 100644
--- a/node_modules/react-native-dropdown-picker/src/components/Picker.js
+++ b/node_modules/react-native-dropdown-picker/src/components/Picker.js
@@ -14,16 +14,15 @@ import {
     TouchableOpacity,
     Text,
     Image,
-    FlatList,
     TextInput,
     Dimensions,
-    ScrollView,
     Modal,
     ActivityIndicator,
     BackHandler,
     Platform,
     StyleSheet,
 } from 'react-native';
+import { FlatList, ScrollView } from 'react-native-gesture-handler';
 
 const { height: WINDOW_HEIGHT } = Dimensions.get('window');
 

This issue body was partially generated by patch-package.

stereodenis avatar Dec 15 '23 10:12 stereodenis

I made the changes but it threw this error Screenshot 2024-01-30 at 12 15 32 PM

YASH6004 avatar Jan 30 '24 06:01 YASH6004

Thx @stereodenis , I just had the same issue 👍

@YASH6004 You probably need to install it https://github.com/software-mansion/react-native-gesture-handler

themad1706 avatar Feb 01 '24 09:02 themad1706

@hossein-zare I have found an issue with Android too. I noticed the component has been updated here but in the node_modules the Picker.js file does not have the imports coming from react-native-gesture-handler.

Any idea why the version that is installed into the node modules is different?

mark-quinn avatar Mar 12 '24 15:03 mark-quinn

+1

SamuelWallisBauer avatar Apr 12 '24 21:04 SamuelWallisBauer

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 e3fb93b..12eb5ed 100644
--- a/node_modules/react-native-dropdown-picker/src/components/Picker.js
+++ b/node_modules/react-native-dropdown-picker/src/components/Picker.js
@@ -14,16 +14,15 @@ import {
     TouchableOpacity,
     Text,
     Image,
-    FlatList,
     TextInput,
     Dimensions,
-    ScrollView,
     Modal,
     ActivityIndicator,
     BackHandler,
     Platform,
     StyleSheet,
 } from 'react-native';
+import { FlatList, ScrollView } from 'react-native-gesture-handler';
 
 const { height: WINDOW_HEIGHT } = Dimensions.get('window');
 

This issue body was partially generated by patch-package. applied the same solution but scroll still not working in android.

MussadiqAli avatar May 07 '24 00:05 MussadiqAli

How is this still open?

rgomezp avatar Jul 15 '24 23:07 rgomezp

No PRs merged since October is how

SamuelWallisBauer avatar Jul 16 '24 16:07 SamuelWallisBauer