Skip to content

Commit baac8eb

Browse files
committed
v0.4.1
1 parent 9f3bc08 commit baac8eb

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ You can find them in the example.
2121

2222
## Update History
2323

24+
### v0.4.1
25+
- Fix bug: [\#27](https://github.com/sohobloo/react-native-modal-dropdown/issues/27) Fix a flex style bug.
26+
- Enhancement: [\#26](https://github.com/sohobloo/react-native-modal-dropdown/issues/26) Support object type of options.
27+
2428
### v0.4.0
2529
- New feature:
2630
[\#10](https://github.com/sohobloo/react-native-modal-dropdown/issues/10) Support touchable component in `renderRow`.
2731
- New feature: [\#11](https://github.com/sohobloo/react-native-modal-dropdown/issues/11) Open `renderSeparator` prop API.
2832
- New feature: Add `adjustFrame` prop for user to adjust the frame style of the dropdown in case the component calculate a mistake frame. \(refer to [#9](https://github.com/sohobloo/react-native-modal-dropdown/issues/5)\) \([code sample](https://github.com/sohobloo/react-native-modal-dropdown/commit/0861d0a1bbe11c221696e8c664ef03ed475a3849#diff-f8c408fd257ff44ce4b01e5f8422b1e1)\)
2933
- Enhancement: Compatible with `react-native` v0.36.0 which has a [break change](https://github.com/facebook/react-native/commit/0a9b6bedb312eba22c5bc11498b1cc41363e5f27) causes the default button with zero size.
30-
- Enhancement: [#16](https://github.com/sohobloo/react-native-modal-dropdown/issues/16) Prevent from warnings if array of styles is used instead of stylesheet or object. Thanks to @NikolaBorislavovHristov .
34+
- Enhancement: [\#16](https://github.com/sohobloo/react-native-modal-dropdown/issues/16) Prevent from warnings if array of styles is used instead of stylesheet or object. Thanks to @NikolaBorislavovHristov .
3135

3236
### v0.3.2
3337
- Fix bug: [\#9](https://github.com/sohobloo/react-native-modal-dropdown/issues/9) *undefined is not an object (evaluating '_this.updatePosition.bind')* in v0.3.1.
@@ -85,7 +89,7 @@ Prop | Type | Optional | Default | Description
8589
`disabled` | bool | Yes | false | disable/enable the component.
8690
`defaultIndex` | number | Yes | -1 | Init selected index. `-1`: None is selected. **This only change the highlight of the dropdown row, you have to give a `defaultValue` to change the init text.**
8791
`defaultValue` | string | Yes | Please select... | Init text of the button. **Invalid in wrapper mode.**
88-
`options` | arrayOf(string)| Yes| | Options. **The dropdown will show a loading indicator if `options` is `null`/`undefined`.**
92+
`options` | array | Yes | | Options. **The dropdown will show a loading indicator if `options` is `null`/`undefined`.**
8993
`style` | object | Yes | | Style of the button.
9094
`textStyle` | object | Yes | | Style of the button text. **Invalid in wrapper mode.**
9195
`dropdownStyle` | object | Yes | | Style of the dropdown list.

example/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-modal-dropdown-demo",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A demo for react-native-modal-dropdown component.",
55
"homepage": "https://github.com/sohobloo/react-native-modal-dropdown",
66
"license": "MIT",

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-modal-dropdown",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "A react-native dropdown component for both iOS and Android.",
55
"keywords": [
66
"react",

0 commit comments

Comments
 (0)