Skip to content
CrossFly is 100% open sourceFollow us on GitHub
CrossFlyCrossFly
Get started

This documentation is currently available in Portuguese. English and other languages are on the way.

Cookbook

Recipes · Navigation

Opening and closing screens, passing data between them and getting a result back, confirmation dialogs included.

How-to🟢
How to open and close a screen

Push and pop screens with show() and hide(), building the UI in onShow().

How-to🔴
How to centralize navigation in a controller

Encapsulate push/pop of the EventsProcessor stack in your own controller, for testable and decoupled navigation.

How-to🟢
How to ask for confirmation before a destructive action

Show a confirmation Alert with buttonAction, dim the background, and give feedback with Hint.

How-to🟡
How to receive a result from a screen

Open a screen and receive a value back — pickers via show(onAnswer), regular screens via a constructor callback.