Skip to content

MissingCore/react-native-draglist

 
 

Repository files navigation

Important

For most of the documentation, refer to the original fivecar/react-native-draglist repository.

Installation

To use this fork of fivecar/react-native-draglist, you need to add the following under the dependencies field in package.json:

"react-native-draglist": "github:MissingCore/react-native-draglist"

If you want to use a specific commit in this fork (ie: to prevent things accidentally breaking when we change things), you can add a commit hash such as:

"react-native-draglist": "github:MissingCore/react-native-draglist#6e926d101e6293785d5cab4c014ccdc4812c19d2"

Note

@shopify/flash-list should be an (optional?) peer dependency, meaning an error shouldn't be thrown if it's not installed (ie: if you only use the <FlatList /> variant).

Notable Commits

Note DragList Version Commit Hash
Least Buggy Version w/ FlashList v1 v3.9.7 a3847ce4f9265853a12b865ba30902e907d43c20
Last Version Supporting FlashList v1 v3.10.0 ef0b66675719a72c2096cf3438bb4aa7dacbf7a7
FlashList v2 Support v3.10.0 c9c1121242131c3ad4e7ab701bd3521b61a8a4cc

Use

There's 2 main exports:

  • "react-native-draglist" is for the original <FlatList /> implementation.
  • "react-native-draglist/dist/FlashList" is for our <FlashList /> implementation.

Differences

  • For the <FlashList /> implementation:
    • Removed the CustomFlatList prop.
    • Renamed containerStyle prop to wrapperStyle.
    • The <View /> wrapping the <FlashList /> by default has flex: 1 applied.
  • For all implementations:

About

FlatList that can be reordered by dragging its items

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 84.8%
  • Kotlin 4.2%
  • Objective-C 3.8%
  • JavaScript 3.0%
  • Ruby 2.9%
  • Objective-C++ 1.3%