# react-native-shadow-style

> Use this function to create shadows for Android and iOS

Latest version **1.0.1** (published 2020-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-shadow-style
pnpm add react-native-shadow-style
yarn add react-native-shadow-style
bun add react-native-shadow-style
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-07-29 |
| First published | 2020-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Maicol Santos |
| Maintainers | maicolsantos |
| Keywords | react-native, shadow, elevation, style |

## Links

- npm: https://www.npmjs.com/package/react-native-shadow-style
- Repository: https://github.com/maicolsantos/react-native-shadow-style
- Homepage: https://github.com/maicolsantos/react-native-shadow-style#readme
- Issues: https://github.com/maicolsantos/react-native-shadow-style/issues
- npm.io page: https://npm.io/package/react-native-shadow-style

## Recent versions

- 1.0.1 (latest) — 2020-07-29
- 1.0.0 — 2020-07-12

## README

# react-native-shadow-style

Use this function to create shadows for Android and iOS

```
yarn add react-native-shadow-style
```

## How to use
```jsx
import React from 'react'
import { View } from 'react-native'
import shadowStyle from 'react-native-shadow-style'

const App = () => (
  <View
    style={{
      // Others styles
      ...shadowStyle(5)
    }}
  />
)
```
## Use with styled components
```js
import styled from 'styled-components/native'
import shadowStyle from 'react-native-shadow-style'

export const Container = styled.View.attrs({
  ...shadowGenerator(5),
})`
  // Others styles
`
```

---
_Source: https://npm.io/package/react-native-shadow-style · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
