File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
# react-native-scroll-ruler
2
2
ReactNative版滑动刻度尺,兼容Android和iOS。
3
3
4
- ## GIF
4
+ ## Gifs
5
5
![ ] ( https://github.com/shenhuniurou/react-native-scroll-ruler/blob/master/scroll-ruler-ios.gif )
6
- ![ ] ( https://github.com/shenhuniurou/react-native-scroll-ruler/blob/master/scroll-ruler-android.gif ) { : height ="510"}
6
+ ![ ] ( https://github.com/shenhuniurou/react-native-scroll-ruler/blob/master/scroll-ruler-android.gif )
7
7
8
8
## Get Started
9
9
@@ -41,7 +41,23 @@ import RNScrollRuler from 'react-native-scroll-ruler';
41
41
unit= {" kg" }
42
42
defaultValue= {this .state .defaultWeight }
43
43
onSelect= {(value ) => {
44
- this .setState ({weight: value});
44
+ this .setState ({weight: value});
45
+ }}
46
+ >< / RNScrollRuler>
47
+
48
+
49
+ < RNScrollRuler
50
+ style= {{width: Util .size .width - 20 , height: 100 , backgroundColor: ' #fff' }}
51
+ ref= {(view ) => {
52
+ }}
53
+ minValue= {120 }
54
+ maxValue= {250 }
55
+ step= {1 }
56
+ num= {10 }
57
+ unit= {" cm" }
58
+ defaultValue= {this .state .defaultHeight }
59
+ onSelect= {(value ) => {
60
+ this .setState ({height: value});
45
61
}}
46
62
>< / RNScrollRuler>
47
63
```
You can’t perform that action at this time.
0 commit comments