Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - Android Native Component for Shadow

I'm building a React Native project that it's design relies largely on shadows.

Unfortunately there is no native support for shadows for android, and setting the elevation property does not meet my needs.

I'm looking desperately for a solution:

I've tried react-native-shadow - but it badly effects performance.

What I found is this native android library for shadows that looks awesome, but I don't have the knowledge on putting it together with a React Native UI Component I can use in my project.

Any help will be appreciated!

like image 531
naomi Avatar asked Oct 17 '18 07:10

naomi


1 Answers

I've ended up using this great Shadow Component:

https://github.com/ajinasokan/react-native-shadowview

It is a React Native UI component, that wraps an Android Native Component.

Exactly what I was looking for... wasn't aware of it when asking question :)

like image 196
naomi Avatar answered Nov 11 '22 13:11

naomi