Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native gradient shadow

I'm adding a shadow to an image, and it works fine but I want the shadow to be gradient like in this picture (from dark to bright ) :

enter image description here

In the documentation shadow Props doesn't have such property, so is there any way to achieve it?

like image 344
Abdennacer Lachiheb Avatar asked Jan 19 '26 10:01

Abdennacer Lachiheb


1 Answers

I'm not sure how Expo is doing it but we've used the react-native-linear-gradient for things like that

https://github.com/react-native-community/react-native-linear-gradient

like image 51
Garrett McCullough Avatar answered Jan 21 '26 07:01

Garrett McCullough



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!