react-native-sortable-grid icon indicating copy to clipboard operation
react-native-sortable-grid copied to clipboard

how to set inactive = false. to it's child

Open devprimocys opened this issue 5 years ago • 5 comments

i'm not able to stop draggable for some items in array. so i need to stop some item to drag with another item how to set inactive true please give me some example

devprimocys avatar Apr 01 '20 05:04 devprimocys

same issue for me: inactive={false} doesn't do anything

appsgenie avatar Apr 29 '20 02:04 appsgenie

actually looks like the main index.js file here in github has the inactive property, while missing in my project's node_modules... so something tied to package manager?

appsgenie avatar Apr 29 '20 03:04 appsgenie

Im experiencing the same thing

Aryk avatar May 09 '20 20:05 Aryk

One hack that I found....add

  <TouchableWithoutFeedback disabled={false} >

When you want to disable the touch events on the the grid. Make sure it has width and height set to 100% so it captures all the touch events.

Aryk avatar May 09 '20 20:05 Aryk

The inactive property actually works on this one:

https://github.com/reidkersey/react-native-sortable-grid#readme

Aryk avatar May 09 '20 21:05 Aryk