Open ghost opened 5 years ago
Did you able find any solution for this ?? I am facing the same issue.
I ended up making them inactive in form of selection. Though they are still moving if displaced by other active component.
ok @ManMohanVyas thanks for your feedback.
I have forked this project. I have added unsortableItemsIndex parameter to SortableView as its prop. unsortableItemsIndex={[4, 5]} item with index 4 and 5 in sortablegrid won't be swapped with others.
Simply added index of item you don't want it to be sorted(swapped) into unsortableItemsIndex.
here is my fork link:https://github.com/BruceSuperProgramer/react-native-sortable-grid
I forked and added a prop named fixed
from this pr #42. I think this is what you need.
https://github.com/alikazemkhanloo/rn-sortable-grid
want some inactive items not to be sorted, inactive property is not working as desired. For inactive child property, document doesn't explains much.