EddyVerbruggen / nativescript-gradient

:art: Easily add fancy (or subtle) gradient backgrounds to your views
MIT License
54 stars 6 forks source link

Use Gradient over image #9

Closed SanchitSolulab closed 7 years ago

SanchitSolulab commented 7 years ago

How can I make it possible to use it with an image? I want the gradient to appear on the bottom of the image. Something like the attached image.

image

EddyVerbruggen commented 7 years ago

Interesting question!

With the current plugin implementation it seems like it's easiest to make those UI overlap each other by using a GridLayout without specifying row indexes.

See the updated screenshots in the readme (I pasted it here as well), and use a snippet like this.

ios-partial2