Ask AI
English EN
Go to Watbot

Screens and overlays

The person sees these blocks on the phone. A "Screen" opens in place of the previous one and goes into the "back" stack. Overlays — a menu, a modal, an alert, an action sheet and a toast — are shown over the current screen and close without taking the person away from it.

  • Only a "Screen" (or the utility "Start" block) can be the start block. An overlay cannot.
  • A new screen closes an open overlay.
  • A screen, a menu and a modal have their own page with elements inside — the elements' exits become the block's exits. An alert, an action sheet and a toast have buttons instead of a page, and each button is a separate exit.
  • The buttons of an alert, an action sheet and a toast are set up the same way: "Button name" and "Role" — "Default", "Cancel", "Destructive".