Skip to main content

Alert Action

An action that adds an alert item to a native alert.

Updated this week

Overview

An Alert Action adds an item to a native alert. Alert Actions can only be added to Alert triggers.

When tapped, Alert Actions can fire other actions. If desired, add those other actions onto the Alert Action.


Action Properties

Title

Set the action item’s title. To remove the title, just set this property to empty

Style

Set the Alert Action’s style to Normal, Cancel or Destructive:

  • Normal: The alert item displays as a normal alert item.

  • Cancel: The alert item displays separate from other items and indicates the data will remain unchanged.

  • Destructive: The alert item displays in red and indicates data will be changed or deleted.

Preferred Action

Choose if the Alert Action is the alert’s preferred action. This will visually emphasize this item and automatically select the item if the user presses return with a keyboard attached.

Did this answer your question?