File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed
Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments