An open API service indexing awesome lists of open source software.

https://github.com/maicolsantos/react-native-shadow-style

Use this function to create shadows for Android and iOS
https://github.com/maicolsantos/react-native-shadow-style

elevation react-native shadow style

Last synced: 3 months ago
JSON representation

Use this function to create shadows for Android and iOS

Awesome Lists containing this project

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 = () => (

)
```
## 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
`
```