Skip to content

Commit

Permalink
Alert: Add "isPreferred" to AlertButtonStyle (facebook#2839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie authored Nov 5, 2022
1 parent f279c06 commit c944021
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default App;

## iOS

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.
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).

## Android

Expand Down Expand Up @@ -293,11 +293,12 @@ Array of objects containing Alert buttons configuration.
**Objects properties:**
| Name | Type | Description |
| -------------------------------------- | ---------------------------------------------- | ------------------------------------------------------- |
| text | string | Button label. |
| onPress | function | Callback function when button is pressed. |
| style <div class="label ios">iOS</div> | [AlertButtonStyle](alert#alertbuttonstyle-ios) | Button style, on Android this property will be ignored. |
| Name | Type | Description |
| -------------------------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------ |
| text | string | Button label. |
| onPress | function | Callback function when button is pressed. |
| style <div class="label ios">iOS</div> | [AlertButtonStyle](alert#alertbuttonstyle-ios) | Button style, on Android this property will be ignored. |
| isPreferred <div class="label ios">iOS</div> | boolean | Whether button should be emphasized, on Android this property will be ignored. |
---
Expand Down

0 comments on commit c944021

Please sign in to comment.