Skip to content

Commit 45d22f6

Browse files
committed
Update readme for v0.4.3
1 parent e9760fc commit 45d22f6

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

README.md

+6-34
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,11 @@ You can find them in the example.
2121

2222
## Update History
2323

24-
### v0.4.2
25-
- Add `animated` option. #44
26-
- Add `showsVerticalScrollIndicator` option
27-
- Add landscape orientation support. #45
24+
### v0.4.3
25+
- Add ability to style dropdown text. See `dropdownTextStyle` and `dropdownTextHighlightStyle`. Thanks to @evansiroky
26+
- Fix `TouchableWithNativeFeedback` should be `TouchableNativeFeedback`
2827

29-
### v0.4.1
30-
- Fix bug: [\#27](https://github.com/sohobloo/react-native-modal-dropdown/issues/27) Fix a flex style bug.
31-
- Enhancement: [\#26](https://github.com/sohobloo/react-native-modal-dropdown/issues/26) Support object type of options.
32-
33-
### v0.4.0
34-
- New feature:
35-
[\#10](https://github.com/sohobloo/react-native-modal-dropdown/issues/10) Support touchable component in `renderRow`.
36-
- New feature: [\#11](https://github.com/sohobloo/react-native-modal-dropdown/issues/11) Open `renderSeparator` prop API.
37-
- 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)\)
38-
- 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.
39-
- 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 .
40-
41-
### v0.3.2
42-
- 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.
43-
- Fix bug: Wrong width of dropdown in very few cases.
44-
45-
### v0.3.1
46-
- Fix bug: [\#6](https://github.com/sohobloo/react-native-modal-dropdown/issues/6) Can not specify `height` style for `dropdownStyle`.
47-
- Remove `updatePosition` function.
48-
49-
### v0.3.0
50-
- Auto update position before show.
51-
- Mark `updatePosition` function as depreciated. (May be removed in next version.)
52-
53-
### v0.2.0
54-
- Add wrapper / container support
55-
56-
Now you can use these component as a wrapper / container. Anything wrapped in it can be the trigger of the dropdown.
57-
58-
<img src="https://github.com/sohobloo/react-native-modal-dropdown/blob/master/docs/demo_4.gif?raw=true" width = "120" height = "144.375" alt="Demo 4"/>
28+
[Full update history list](https://github.com/sohobloo/react-native-modal-dropdown/wiki/Update-History)
5929

6030
## Installation
6131
```sh
@@ -100,6 +70,8 @@ Prop | Type | Optional | Default | Description
10070
`style` | object | Yes | | Style of the button.
10171
`textStyle` | object | Yes | | Style of the button text. **Invalid in wrapper mode.**
10272
`dropdownStyle` | object | Yes | | Style of the dropdown list.
73+
`dropdownTextStyle` | object | Yes | | Style of the dropdown option text.
74+
`dropdownTextHighlightStyle` | object | Yes | | Style of the dropdown selected option text.
10375
`adjustFrame` | func | Yes | | This is a callback after the frame of the dropdown have been calculated and before showing. You will receive a style object as argument with some of the props like `width` `height` `top` `left` and `right`. Change them to appropriate values that accord with your requirement and **make the new style as the return value of this function**.
10476
`renderRow` | func | Yes | | Customize render option rows. **Will render a default row if `null`/`undefined`.**
10577
`renderSeparator` | func | Yes | | Customize render dropdown list separators. **Will render a default thin gray line if `null`/`undefined`.**

0 commit comments

Comments
 (0)