Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

want some inactive items not to be sorted, inactive property is not working #56

Open
ghost opened this issue Mar 5, 2019 · 5 comments

Comments

@ghost
Copy link

ghost commented Mar 5, 2019

want some inactive items not to be sorted, inactive property is not working as desired.
For inactive child property, document doesn't explains much.

<View key={i} 
                    style={{height:90, width:90, borderRadius:45, borderColor:"#9b9b9b", borderWidth:3, alignItems:"center", justifyContent:"center"}} 
                     inactive ={true}
              >
                        <Entypo name="circle-with-plus" style={{color:"#9b9b9b"}} size={76} />
                </View>
@pankajnegi-soar187
Copy link

Did you able find any solution for this ?? I am facing the same issue.

@ghost
Copy link
Author

ghost commented Apr 10, 2019

I ended up making them inactive in form of selection. Though they are still moving if displaced by other active component.

@pankajnegi-soar187
Copy link

ok @manmohanvyas thanks for your feedback.

@BruceSuperProgramer
Copy link

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

@alikazemkhanloo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants