diff --git a/README.md b/README.md
index 66481b0e762c5f6b7e5f76c4e60235dc2bd2f915..a846b755ae512a1da1e608370a00d81d67769113 100644
--- a/README.md
+++ b/README.md
@@ -8,17 +8,23 @@ Needs react-native >= 0.14.2

+
+
###Documentation
####Props
-- pickerBtnText string, tool bar's btn text
+- pickerBtnText string, tool bar's confirm btn text
+- pickerCancelBtnText string, tool bar's cancel ben text
- pickerBtnStyle textStylePropType, tool bar's btn style
- pickerToolBarStyle viewStylePropType, tool bar's style
-- pickerHeight number
-- showDuration number
+- pickerHeight number, height of picker
+- showDuration number, animation of picker
+- pickerTitle string, title of picker
+- pickerTitleStyle textStylePropType, style of title
- pickerData array
- selectedValue any
- onPickerDone function
+- onPickerCancel function
####Methods
- toggle show or hide picker, default to be hiden
@@ -37,7 +43,6 @@ Needs react-native >= 0.14.2
import Picker from 'react-native-picker'
{this.picker = picker;}}
pickerHeight={300}
showDuration={300}
pickerData={}//picker`s value List
diff --git a/doc/ui2.jpg b/doc/ui2.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..610c07416f809902fbe1ed7df120e6422345af2e
Binary files /dev/null and b/doc/ui2.jpg differ
diff --git a/index.js b/index.js
index f218451ae3b7fe06cf15a4ae52f28bf5f356692b..3605f88bf8214d7df5288ec52e9e87b01557934b 100644
--- a/index.js
+++ b/index.js
@@ -102,7 +102,7 @@ export default class PickerAny extends React.Component {
secondPickedData = props.selectedValue[1];
cascadeData = this._getCascadeData(pickerData, selectedValue, firstPickedData, secondPickedData, true);
}
- //保存了已经选择到的数据
+ //save picked data
this.pickedValue = selectedValue;
this.pickerStyle = pickerStyle;
return {
@@ -482,7 +482,8 @@ let styles = StyleSheet.create({
flexDirection: 'row',
borderTopWidth: 1,
borderBottomWidth: 1,
- borderColor: '#c3c3c3'
+ borderColor: '#c3c3c3',
+ alignItems: 'center'
},
pickerBtnView: {
flex: 1,
@@ -503,7 +504,7 @@ let styles = StyleSheet.create({
marginLeft: 20
},
pickerTitle: {
- flex: 5,
+ flex: 4,
color: 'black',
textAlign: 'center'
},
diff --git a/package.json b/package.json
index f744227c42694c0d9b117c992213f725872d1118..62b17ccfa09e63a60fe493f67984c0a59081876d 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-picker",
- "version": "0.2.7",
+ "version": "0.2.8",
"description": "react-native-picker",
"main": "index.js",
"scripts": {