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

Changing the background image for each item

Open Ruzen1 opened this issue 2 years ago • 2 comments

Hey @SHISME

Sorry for continuous trouble.

Could you please reply if you have time?

I need to fix a background image for each item. I did some methods but its making the background image to be dragged too.

I want to drag the item but keep the background image fixed. Is it possible?

Could you please suggest some ideas?

Thank You!

Ruzen1 avatar Aug 12 '21 01:08 Ruzen1

Maybe you can make a fixed View when onDragStart?

SHISME avatar Aug 20 '21 02:08 SHISME

@Ruzen1

  1. use imported images instead of strings

image

image

  1. adapt the render_item with image instead of text

image

you can wrap the whole thing in an <ImageBackground> and position a <View> that contains the <DraggableGrid>

image

talktosalvador avatar Apr 24 '22 17:04 talktosalvador