{"repo":"alan-eu/react-native-fast-shadow","free":true,"listed":false,"github":"https://github.com/alan-eu/react-native-fast-shadow","clone":"git clone https://github.com/alan-eu/react-native-fast-shadow.git","description":"Fast and high quality Android shadows for React Native","language":"Java","stars":596,"topics":["android","react-native","shadow"],"license":"MIT","category":"mobile-apps","readme_excerpt":"🌖 react-native-fast-shadow Fast and high quality Android shadows for React Native Why React Native only supports shadows on Android through the elevation prop but achieving the desired effect is often impossible as it only comes with very few presets. Third-party libraries have been created to circumvent this but when used on many views, they can make you app slower or significantly increase its memory consumption. Features 💆‍♀️ Easy to use: Drop-in replacement for the component ⚡️ Performant: Shadows can be applied to a large number of views without any signicant performance impact. It has been optimized for low memory consumption and fast rendering 🎛 Customizable: Supports all the regular shadow props, shadowRadius , shadowColor , shadowOpacity and shadowOffset 📱 Universal: Works on all platforms. On iOS and Web, is just an alias of Getting started Usage: shadowStyle(): The shadowStyle() utility can also be used to make it easier to create shadow styles and to keep shadows consistent accross platforms. It will create the same style prop as above, but will divide the shadow radius by 2 on iOS (as for some reasons, iOS shadows are too large by a factor of 2 when compared to design tools or to CSS's box-shadows): How it works under the hood On Android, shadow drawables are generated with the following process (see ShadowFactory.java for more details): 1. The shape of the view (rectangle with rounded corners) is painted in black on a canvas 2. A gaussian blur is applied to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/alan-eu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alan-eu/react-native-fast-shadow/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}