javascript - How can I create an interactive list with drag-and-drop functionality in React Native with Expo Go? - Stack Overflo

I'm looking to implement a list in my React Native app that allows users to rearrange items by dra

I'm looking to implement a list in my React Native app that allows users to rearrange items by dragging them up and down, effectively changing the order of the list. I've tried several npm packages, but none seem to work or are outdated for the latest versions. Can anyone suggest a way to create a draggable list in React Native with Expo Go? I've tried different approaches, but haven't been able to figure it out. Any help would be appreciated. Thanks!

I'm looking to implement a list in my React Native app that allows users to rearrange items by dragging them up and down, effectively changing the order of the list. I've tried several npm packages, but none seem to work or are outdated for the latest versions. Can anyone suggest a way to create a draggable list in React Native with Expo Go? I've tried different approaches, but haven't been able to figure it out. Any help would be appreciated. Thanks!

Share Improve this question asked Apr 13, 2023 at 8:40 Felix DevelopmentFelix Development 511 silver badge5 bronze badges 2
  • There's plenty of articles and tutorials about that. This is one of them: blog.logrocket./react-native-draggable-flatlist – Stefano Ortisi Commented Apr 13, 2023 at 9:37
  • Thank you for your ment. As I mentioned before, and if you read through their GitHub issues at github./puterjazz/react-native-draggable-flatlist/issues, you'll see that the library is outdated and not functioning properly. That's why I'm exploring alternative solutions. – Felix Development Commented Apr 13, 2023 at 11:15
Add a ment  | 

1 Answer 1

Reset to default 6

You can try react-native-draglist : https://github./fivecar/react-native-draglist

This package is a basic version of react-native-draggable-flatlist without dependencies on anything except react and react-native. Specifically, it is deliberately built to avoid react-native-reanimated and its hanging/crashing issues.

It is limited in the following ways:

  • It does not animate as smoothly (though it does useNativeDriver)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744571715a4581494.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信