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

Changing the background image for each item #58

Open
Ruzen1 opened this issue Aug 12, 2021 · 2 comments
Open

Changing the background image for each item #58

Ruzen1 opened this issue Aug 12, 2021 · 2 comments

Comments

@Ruzen1
Copy link

Ruzen1 commented Aug 12, 2021

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
Copy link
Owner

SHISME commented Aug 20, 2021

Maybe you can make a fixed View when onDragStart?

@talktosalvador
Copy link

talktosalvador commented Apr 24, 2022

@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

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