Skip to content

Commit f3aa2fb

Browse files
committed
Add the "preferred" AlertButtonStyle
1 parent a364500 commit f3aa2fb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/alert.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default App;
142142

143143
## iOS
144144

145-
On iOS you can specify any number of buttons. Each button can optionally specify a style, available options are represented by the [AlertButtonStyle](#alertbuttonstyle-ios) enum.
145+
On iOS you can specify any number of buttons. Each button can optionally specify a style or be emphasized, available options are represented by the [AlertButtonStyle](#alertbuttonstyle-ios) enum and the `isPreferred` field on [Buttons](alert#buttons).
146146

147147
## Android
148148

@@ -284,19 +284,20 @@ An iOS Alert type.
284284
285285
### Buttons
286286
287-
Array of objects containg Alert buttons configuration.
287+
Array of objects containing Alert buttons configuration.
288288
289289
| Type |
290290
| ---------------- |
291291
| array of objects |
292292
293293
**Objects properties:**
294294
295-
| Name | Type | Description |
296-
| -------------------------------------- | ---------------------------------------------- | ------------------------------------------------------- |
297-
| text | string | Button label. |
298-
| onPress | function | Callback function when button is pressed. |
299-
| style <div class="label ios">iOS</div> | [AlertButtonStyle](alert#alertbuttonstyle-ios) | Button style, on Android this property will be ignored. |
295+
| Name | Type | Description |
296+
| -------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------ |
297+
| text | string | Button label. |
298+
| onPress | function | Callback function when button is pressed. |
299+
| style <div class="label ios">iOS</div> | [AlertButtonStyle](alert#alertbuttonstyle-ios) | Button style, on Android this property will be ignored. |
300+
| isPreferred <div class="label ios">iOS</div> | boolean | Whether button should be emphasized, on Android this property will be ignored. |
300301
301302
---
302303

0 commit comments

Comments
 (0)