Skip to content

Commit

Permalink
label
Browse files Browse the repository at this point in the history
  • Loading branch information
879479119 committed Sep 24, 2016
1 parent 16a8ff2 commit cf1015e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# react-native-shadow
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
---

Since there is no "shadow" attribute in style list of Android,if we want to add a shadow effect on a component,we must patch a PNG-24 picture,but it's so non-graceful;therefore here comes a SVG shadow plugin to help with this problem. **only support RN 0.33 for now**
Since there is no "shadow" attribute in style list of Android,if we want to add a shadow effect on a component,we must patch a PNG-24 picture,but it's so non-graceful;therefore here comes a SVG shadow plugin to help with this problem. **We suggest you to use native shadow on iOS**

## HOW TO USE IT

Expand All @@ -11,7 +13,7 @@ npm install react-native-shadow --save
```

### Second
you have to config your project to support the SVG component we use( `react-native-svg` ):
you have to config your project to support the SVG component we use( `react-native-svg` - [Link](https://github.com/react-native-community/react-native-svg)):
Link native code

```bash
Expand Down Expand Up @@ -99,7 +101,9 @@ const shadowOpt = {
}
```
3.create a shadow element and set the object to `settihg`,and you

**MUST SET ITS PARENTELEMENT RELATIVE**:

**MUST SET ITS PARENTELEMENT RELATIVE**:
```js
render = () => {
Expand Down Expand Up @@ -177,4 +181,9 @@ export default class VideoCell extends Component {
#### what to notice

This component is so simple,and we are making efforts to make it better;
if you met any problem when using it,you can try solving yourself by reading the source code or post an issue,thanks ~~
if you met any problem when using it,you can try solving yourself by reading the source code or post an issue,thanks ~~


[npm-url]: https://npmjs.org/package/react-native-shadow
[downloads-image]: http://img.shields.io/npm/dm/react-native-shadow.svg
[npm-image]: http://img.shields.io/npm/v/react-native-shadow.svg

0 comments on commit cf1015e

Please sign in to comment.