Skip to content

Commit b855882

Browse files
changelog and readme (#515)
1 parent 9e6a86a commit b855882

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 8.1.0
2+
3+
##### New
4+
5+
- Dark mode support (#513)
6+
- donePressed on onClose callback (#319)
7+
- testID available on each item (#498)
8+
9+
##### Bugfix
10+
11+
- Fixed reliance on now-private dep (#513)
12+
13+
---
14+
115
## 8.0.4
216

317
##### Bugfix

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const Dropdown = () => {
6464
| Name | Description | Details |
6565
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ |
6666
| `onValueChange` | Callback which returns `value, index` | **required**<br>function |
67-
| `items` | The items for the component to render<br> - Each item should be in the following format:<br>`{label: 'Orange', value: 'orange', key: 'orange', color: 'orange', inputLabel: 'Orange!', testID: 'e2e-orange'}`<br>- `label` and `value` are required<br>- `key`, `color`, and `inputLabel` are optional<br>- `key` will be set to equal `label` if not included<br>- `value` can be any data type<br>- If `inputLabel` exists, the TextInput will display that value instead of the `label`<br>- `testID` will be used in e2e tests to locate the options | **required**<br>array |
67+
| `items` | The items for the component to render<br> - Each item should be in the following format:<br>`{label: 'Orange', value: 'orange', key: 'orange', color: 'orange', inputLabel: 'Orange!', testID: 'e2e-orange'}`<br>- `label` and `value` are required<br>- `key`, `color`, `testID`, and `inputLabel` are optional<br>- `key` will be set to equal `label` if not included<br>- `value` can be any data type<br>- If `inputLabel` exists, the TextInput will display that value instead of the `label` | **required**<br>array |
6868
| `placeholder` | - An override for the default placeholder object with a label of `Select an item...` and a value of `null`<br>- An empty object can be used if you'd like to disable the placeholder entirely | object |
6969
| `disabled` | Disables interaction with the component | boolean |
7070
| `value` | Will attempt to locate a matching item from the `items` array by checking each item's `value` property. If found, it will update the component to show that item as selected. If the value is not found, it will default to the first item. | any |
@@ -82,7 +82,7 @@ export const Dropdown = () => {
8282
| `doneText`<br>_iOS only_ | "Done" default text on the modal. Can be overwritten here | string |
8383
| `onUpArrow() / onDownArrow()`<br>_iOS only_ | Presence enables the corresponding arrow<br>- Closes the picker<br>- Calls the callback provided | function |
8484
| `onDonePress()`<br>_iOS only_ | Callback when the 'Done' button is pressed | function |
85-
| `onClose(Bool)`<br>_iOS only_ | Callback triggered right before the closing of the picker. It has one boolean parameter indicating if the done button was pressed or not | function |
85+
| `onClose(Bool)`<br>_iOS only_ | Callback triggered right before the closing of the picker. It has one boolean parameter indicating if the done button was pressed or not | function |
8686
| `modalProps`<br>_iOS only_ | Additional props to pass to the Modal (some props are used in core functionality so use this carefully) | object |
8787
| `touchableDoneProps`<br>_iOS only_ | Additional props to pass to the Done touchable (some props are used in core functionality so use this carefully) | object |
8888

0 commit comments

Comments
 (0)