software-mansion / react-native-svg

SVG library for React Native, React Native Web, and plain React web projects.
MIT License
7.42k stars 1.12k forks source link

A drop shadow effect for the svgs, or if possible use of react-native's elevtion #1366

Open nitishxyz opened 4 years ago

nitishxyz commented 4 years ago

Feature Request

A drop shadow effect for the svgs would be very helpful, and if possible, the elevation style for the svgs. Because elevation is more accessible and easily implemented in react-native for adjoining views.

Thanks in advance.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

sparebytes commented 3 years ago

The lack of shadow support forces us to resort to PNGs.

adamsoutar commented 3 years ago

For me, it seems I can wrap the svg in a View, and then its shadow shows up on iOS. I can't get an elevation shadow on Android though.