react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

IOS: drag and drop not working on ios. while working perfectly on android.

Open umairalirehan opened this issue 4 years ago • 11 comments

<DraggableFlatList data={data} renderItem={renderItem} keyExtractor={(item, index) => index.toString()} onDragEnd={({ data }) => setData(data)}

const renderItem = useCallback( ({ item, index, drag, isActive }) => { return ( <TouchableOpacity style={{ height: 50, backgroundColor: isActive ? colors.paratGreen : index % 2 === 0 ? colors.solidRed : colors.solidBgFb, alignItems: "center", justifyContent: "center", marginVertical: hp('0.25') }} onLongPress={drag} > <Text style={{ fontFamily: fontFamily.semiBold, color: colors.white, fontSize: hp('2'), }} > {item.serviceName} </Text> </TouchableOpacity> ); }, [] );

umairalirehan avatar Sep 16 '21 10:09 umairalirehan

I'm also facing this same issue.

ihiteshkumar avatar Sep 22 '21 22:09 ihiteshkumar

We can hope that the issue will be solved soon. please when will you get the solution for that. kindly share that solution with me.

On Thu, Sep 23, 2021 at 3:31 AM Hitesh Kumar @.***> wrote:

I'm also facing this same issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/computerjazz/react-native-draggable-flatlist/issues/314#issuecomment-925375696, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKV2NFME3UMK7WMO6DUJHJDUDJKK3ANCNFSM5EEOJHSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

umairalirehan avatar Sep 23 '21 06:09 umairalirehan

@umairalirehan You might need to downgrade react-native-reanimated, v 1.13.3 is the latest working version with draggable flatlist

msvickylau avatar Sep 29 '21 15:09 msvickylau

I also had a problem matching this description, having react-native-reanimated v2.1.0, and in the simulator drag would trigger, setting isActive to true, but no drag would occur when the gesture began. However, per #282, after disabling debugging (ctrl+cmd+z and then select Stop Debugging from the menu) the library worked as expected (even with react-native-reanimated v2.1.0).

Bottom line: if you have this issue in the simulator, try turning debugging off.

eliotball avatar Oct 06 '21 11:10 eliotball

I also had a problem matching this description, having react-native-reanimated v2.1.0, and in the simulator drag would trigger, setting isActive to true, but no drag would occur when the gesture began. However, per #282, after disabling debugging (ctrl+cmd+z and then select Stop Debugging from the menu) the library worked as expected (even with react-native-reanimated v2.1.0).

Bottom line: if you have this issue in the simulator, try turning debugging off.

my problem solved with your help. its working now by closing debugging mode off. you are a great helper. thanks alot

umairalirehan avatar Oct 07 '21 07:10 umairalirehan

I solved this issue by removing the changes made to AppDelegate.m file, which was a fix to another problem https://github.com/facebook/react-native/issues/16376#issuecomment-810094592

lida99 avatar Dec 29 '21 22:12 lida99

I also had a problem matching this description, having react-native-reanimated v2.1.0, and in the simulator drag would trigger, setting isActive to true, but no drag would occur when the gesture began. However, per #282, after disabling debugging (ctrl+cmd+z and then select Stop Debugging from the menu) the library worked as expected (even with react-native-reanimated v2.1.0).

Bottom line: if you have this issue in the simulator, try turning debugging off.

I have turn off debugging and it working. Thanks !!

MinhOmega avatar Feb 14 '22 13:02 MinhOmega