React Native's View Component with Shadows Both on Android and iOS, inspired by react-native-shadow
npm install @zhigang1992/react-native-shadow-viewReact Native's View Component with Shadows Both on Android and iOS, inspired by react-native-shadow
Install react-native-svg first
```
$ npm install react-native-shadow-view --save
` javascript
import ShadowView from 'react-native-shadow-view'
const Example = (props) => (
height: 470,
backgroundColor: 'white',
borderRadius: 10,
justifyContent: 'center',
alignItems: 'center',
shadowColor: '#000',
shadowOffset: {
width: 0, height: 2,
},
shadowOpacity: 0.3,
shadowRadius: 4
}}>
)
`
- The width and height of the View` style must be specified.