Skip to content

Commit 5ef573a

Browse files
committed
readme
1 parent e2b2000 commit 5ef573a

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ Needs react-native >= 0.14.2
2222
###Documentation
2323

2424
####Props
25-
- <b>style</b> style of picker
25+
- <b>style</b> style of picker, you can set width and height of picker in this prop
2626
- <b>pickerBtnText</b> string, tool bar's confirm btn text
2727
- <b>pickerCancelBtnText</b> string, tool bar's cancel ben text
2828
- <b>pickerBtnStyle</b> textStylePropType, tool bar's btn style
2929
- <b>pickerToolBarStyle</b> viewStylePropType, tool bar's style
30-
- <b>pickerWidth</b> number, width of picker
31-
- <b>pickerHeight</b> number, height of picker
3230
- <b>showDuration</b> number, animation of picker
31+
- <b>showMask</b> boolean, default to be false, cancel the picker by tapping in the rest of the screen support when setted to be true
3332
- <b>pickerTitle</b> string, title of picker
3433
- <b>pickerTitleStyle</b> textStylePropType, style of title
3534
- <b>pickerData</b> array
@@ -58,8 +57,11 @@ Needs react-native >= 0.14.2
5857
import Picker from 'react-native-picker'
5958

6059
<Picker
61-
pickerHeight={300}
60+
style={{
61+
height: 300
62+
}},
6263
showDuration={300}
64+
showMask={true}
6365
pickerData={}//picker`s value List
6466
selectedValue={}//default to be selected value
6567
onPickerDone={}//when confirm your choice

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-picker",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "react-native-picker",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)