最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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)
发布评论

评论列表(0)

  1. 暂无评论