Skip to content

Commit 498b589

Browse files
committed
update readme
1 parent ca5f86a commit 498b589

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# react-native-scroll-ruler
22
ReactNative版滑动刻度尺,兼容Android和iOS。
33

4-
## GIF
4+
## Gifs
55
![](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)
77

88
## Get Started
99

@@ -41,7 +41,23 @@ import RNScrollRuler from 'react-native-scroll-ruler';
4141
unit={"kg"}
4242
defaultValue={this.state.defaultWeight}
4343
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});
4561
}}
4662
></RNScrollRuler>
4763
```

0 commit comments

Comments
 (0)