Skip to content

Commit 69a9a84

Browse files
committed
docs: add basic readme information
1 parent 911e168 commit 69a9a84

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# react-native-shadow-view
22

3-
React Native library with Android native view which supports same shadows styles as iOS
3+
React Native library with Android native view which supports same shadows styles as iOS
44

55
## Installation
66

@@ -11,11 +11,30 @@ npm install react-native-shadow-view
1111
## Usage
1212

1313
```js
14-
import ShadowView from "react-native-shadow-view";
14+
import { ShadowView } from 'react-native-shadow-view';
1515

1616
// ...
1717

18-
const result = await ShadowView.multiply(3, 7);
18+
<ShadowView style={[styles.box, styles.shadow]} />
19+
20+
// ...
21+
const styles = StyleSheet.create({
22+
box: {
23+
width: 60,
24+
height: 60,
25+
marginVertical: 20,
26+
backgroundColor: 'green',
27+
},
28+
shadow: {
29+
shadowColor: '#000',
30+
shadowOffset: {
31+
width: 2,
32+
height: 4,
33+
},
34+
shadowOpacity: 0.6,
35+
shadowRadius: 4.65,
36+
},
37+
});
1938
```
2039

2140
## Contributing

0 commit comments

Comments
 (0)