IOS: drag and drop not working on ios. while working perfectly on android.
<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> ); }, [] );
I'm also facing this same issue.
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 You might need to downgrade react-native-reanimated, v 1.13.3 is the latest working version with draggable flatlist
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 also had a problem matching this description, having
react-native-reanimatedv2.1.0, and in the simulatordragwould trigger, settingisActiveto 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 withreact-native-reanimatedv2.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
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
I also had a problem matching this description, having
react-native-reanimatedv2.1.0, and in the simulatordragwould trigger, settingisActiveto 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 withreact-native-reanimatedv2.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 !!