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
1 Answer
Reset to default 6You 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条)