SHISME / react-native-draggable-grid

A draggable and sortable grid of react-native
315 stars 95 forks source link

Disable dragging for certain blocks? #23

Closed joshuakoh7 closed 4 years ago

joshuakoh7 commented 4 years ago

Trying to pad the empty space in an incomplete grid with filler blocks but don't want these to be dragged/sorted. Possible to add a prop to disable drag?

SHISME commented 4 years ago

ok,i will add props to support that

SHISME commented 4 years ago

I had add disabledDrag and disabledReSorted

RanaAzwar commented 4 years ago

please correct spelling in read me file (disabledResorted)in props its disabledReSorted.

hexatown-haidar commented 3 years ago

disbaledDrag prop not working........!

jhon-hst commented 3 years ago

disabledDrag is no working or please tell me what my mistake

`const Render_item = ({ name, key }) => {

return (
    <View
        style={[ styles.containerImage ]}
        key={key}
        disabledDrag={false}
        disabledReSorted={false}
    >
        <Image source={Images['photo1']} style={[ styles.image ]} />
    </View>
)

} return (

{ setImages(data) }} style={{ maxHeight: 350 }} /> )`