Open links
Open URLs, deep links, and native screens from your app.
Open a link
Open a URL in an in-app web view, an external app, or a native screen. Set view to choose the destination. URLs are normalized by default (missing https:// is added, urlParams applied); pass useRawLink: true to skip that.
With view: "website", iOS opens an in-app browser sheet and Android hands the URL to the device's default browser.
The examples use your app’s showNavigationUnavailable() handler.
Open a page as a modal
Present another page over the current one without losing its state. Pass transition: "modal"; modal_style is sheet or fullscreen (default sheet), and modal_detent is large or medium (default large, sheets only). Close dismisses the whole modal; Back pops pages inside it.
Test session persistence and state synchronization in your own app on each platform. Do not assume closing behaviour from an ordinary browser history example.
Older app builds open it as a normal page. Where the platform offers only fullscreen (Android today), a sheet request presents fullscreen.
Know when a modal closes
The page that opened the modal receives navigation.dismissed once after it closes. Subscribe before you call. The payload is a NavigationDismissedEvent.
See every native feature with its demo on thebdk.com.