Commit c927541b authored by zooble's avatar zooble Committed by GitHub

Update README.md

parent 69082184
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
![ui3](./doc/ui3.jpg) ![ui3](./doc/ui3.jpg)
![ui4](./doc/ui4.jpg) ![ui4](./doc/ui4.jpg)
###Documentation ### Documentation
####Params #### Params
|Key | Description | Type | Default| |Key | Description | Type | Default|
| --- | ----------- | ---- | ------ | | --- | ----------- | ---- | ------ |
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
|onPickerCancel | |function| | |onPickerCancel | |function| |
|onPickerSelect | |function| | |onPickerSelect | |function| |
####Methods #### Methods
|Name | Description | Type | Default| |Name | Description | Type | Default|
| --- | ----------- | ---- | ------ | | --- | ----------- | ---- | ------ |
...@@ -40,21 +40,21 @@ ...@@ -40,21 +40,21 @@
|isPickerShow |get status of picker, return a boolean | | | |isPickerShow |get status of picker, return a boolean | | |
###Usage ### Usage
####Step 1 - install #### Step 1 - install
``` ```
npm install react-native-picker --save npm install react-native-picker --save
``` ```
####Step 2 - link #### Step 2 - link
``` ```
react-native link react-native link
``` ```
####Step 3 - import and use in project #### Step 3 - import and use in project
```javascript ```javascript
import Picker from 'react-native-picker'; import Picker from 'react-native-picker';
...@@ -81,15 +81,15 @@ ...@@ -81,15 +81,15 @@
``` ```
###Notice ### Notice
####support two modes: #### support two modes:
<b>1. parallel:</b> such as time picker, wheels have no connection with each other <b>1. parallel:</b> such as time picker, wheels have no connection with each other
<b>2. cascade:</b> such as date picker, address picker .etc, when front wheel changed, the behind wheels will all be reset <b>2. cascade:</b> such as date picker, address picker .etc, when front wheel changed, the behind wheels will all be reset
####parallel: #### parallel:
- single wheel: - single wheel:
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
selectedValue = [1, 5]; selectedValue = [1, 5];
``` ```
####cascade: #### cascade:
- two wheel - two wheel
...@@ -173,4 +173,4 @@ ...@@ -173,4 +173,4 @@
] ]
``` ```
### For pure javascript version -> [v3.0.5](https://github.com/beefe/react-native-picker/tree/pure-javascript-version) ### For pure javascript version -> [v3.0.5](https://github.com/beefe/react-native-picker/tree/pure-javascript-version)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment