Skip to content

v0.2.0 release

Choose a tag to compare

@AdamLee321 AdamLee321 released this 15 Sep 09:27
· 1 commit to v0.2.0 since this release

New Features:

  • Custom Item Styles and Props: Introduced itemStyle and itemProps to allow more flexibility in customizing the appearance and behavior of each sortable item.
  • Enhanced Customizability: You can now easily pass additional styles and props to the items in the grid or list, improving the overall control over how items are rendered and interact.

Improvements:

  • Code Refactoring: Improved internal structure and naming of components for better clarity and maintainability.
  • Better Handling of Props: Updated components to ensure consistent application of props throughout the sortable items.

Usage

<SortableView
  config={{ MARGIN: 10, COL: 2 }}
  data={data}
  editing={enableEditing}
  onDragEnd={positions => console.log(positions)}
  renderItem={renderItem}
  onPress={handleLongPress}
  onLongPress={handleLongPress}
  itemStyle={{ backgroundColor: 'blue' }}
  itemProps={{ disabled: true }}
/>

Full Changelog: v0.1.1-release...v0.2.0-release