🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-native-fast-shadow

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-fast-shadow - npm Package Compare versions

Comparing version

to
0.1.1

2

package.json
{
"name": "react-native-fast-shadow",
"version": "0.1.0",
"version": "0.1.1",
"description": "Fast and high quality Android shadows for React Native",

@@ -5,0 +5,0 @@ "main": "lib/commonjs/index",

# 🌖 react-native-fast-shadow
[![npm package](https://img.shields.io/npm/v/react-native-fast-shadow?color=brightgreen&label=npm%20package)](https://www.npmjs.com/package/react-native-fast-shadow)
**Fast and high quality** Android shadows for React Native

@@ -62,3 +64,3 @@

```
## How it works under the hood

@@ -70,3 +72,3 @@

3. The drawable is then converted to a [NinePatchDrawable](https://developer.android.com/reference/android/graphics/drawable/NinePatchDrawable) to ensure that corners of the shadow won't be distorted when the view is resized. This way, we can generate only a small shadow drawable and **reuse it** for all views with the same border and blur radii.
4. Finally, the drawable is rendered behind the view content: it is tinted with `shadowColor`/`shadowOpacity` and offseted according to `shadowOffset`
4. Finally, the drawable is rendered behind the view content: it is tinted with `shadowColor`/`shadowOpacity` and offseted according to `shadowOffset`

@@ -73,0 +75,0 @@ **How NinePatchDrawable works** (notice how the corners are not streched when the drawable is resized):

Sorry, the diff of this file is not supported yet