How to set elevation color?

You can change shadow colors on Views starting API 28 (Pie) with View#setOutlineAmbientShadowColor(int color) and View#setOutlineSpotShadowColor(int color) if you use elevation.


Unfortunately, the color of the shadow produced by Android's setElevation cannot be changed. Also, their Material Design guidelines around the web like here don't seem to indicate that you can change the color.

https://developer.android.com/training/material/shadows-clipping.html

In addition, box shadows in React Native are also not supported on Android, based on this.