Skip to content

Commit

Permalink
docs: add doc about 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoidjk committed Aug 2, 2017
1 parent c80d5db commit 6b91cfb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sudo: false
notifications:
email:
- yiminghe@gmail.com
- hust2012jiangkai@gmail.com

node_js:
- 6.9.1
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ react-native run-ios

# 4.x beta docs

> If you are looking for 3.x doc, please see [rmc-picker@3.x](https://github.com/react-component/m-picker/tree/3.x)

## Usage
```jsx
<MultiPicker
Expand Down Expand Up @@ -111,8 +114,8 @@ react-native run-ios
|selectedValue | current selected values | string/number | |
|onValueChange | fire when picker change | Function(value) | |
|disabled | whether picker is disabled | bool | false
|indicatorClassName | className of indicator | String |
|indicatorStyle | style of indicator | object |
|indicatorClassName | className of indicator | String |
|indicatorStyle | style of indicator | object |

### Picker.Item props
| name | description | type | default |
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
"main": "./lib/index",
"module": "./es/index",
"config": {
"port": 8021
"port": 8021,
"entry": [
"./src/index.tsx",
"./assets/index.less",
"./assets/popup.less"
]
},
"scripts": {
"watch-tsc": "rc-tools run watch-tsc",
Expand Down

0 comments on commit 6b91cfb

Please sign in to comment.