Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native: Elevation Style Property - Change shadow direction

Can I change the shadow direction of elevation style property (android only) on React Native?

Typically the shadow is show on bottom of element, but I wanna show it on top side.

Thanks

like image 347
rodrix Avatar asked Jan 12 '18 18:01

rodrix


1 Answers

If you're talking about Android (which I'm going to assume since elevation doesn't exist on iOS), no you can't.

The virtual 'creating' the shadows are coming from fixed light spots for now (See https://material.io/guidelines/material-design/environment.html#environment-light-shadow).

like image 57
Bhullnatik Avatar answered Nov 15 '22 04:11

Bhullnatik