SHISME / react-native-draggable-grid

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

Changing the background image for each item #58

Open Ruzen1 opened 3 years ago

Ruzen1 commented 3 years ago

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!

SHISME commented 3 years ago

Maybe you can make a fixed View when onDragStart?

talktosalvador commented 2 years ago

@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