WarpLink
SDKsReact Native

Deep Links

Handle deep links in your React Native app across iOS and Android, covering both cold start and warm start with the WarpLink SDK.

Deep links arrive in two scenarios: cold start (app launched by a link) and warm start (app brought from background by a link). The onLink callback you pass to configure() handles both. You do not need to wire up listeners in your components.

Basic Setup

Register onLink once at startup (see React Native SDK). Cold start, warm start, and deferred installs all flow through it:

With React Navigation

Route to a screen from onLink using a navigation ref you set once:

Pass ref={navigationRef} to your NavigationContainer.

Cold Start vs Warm Start

ScenarioHandled byWhen
Cold startonLink (automatic)App was not running: launched by tapping a link
Warm startonLink (automatic)App was in background: brought to foreground by a link

Both are delivered to onLink automatically. To drive them yourself, set automaticDeepLinks: false and use getInitialDeepLink() (cold start) and onDeepLink(listener) (warm start).

Manual Setup (Advanced)

With automaticDeepLinks: false, wire the listeners yourself in your root component:

Error Handling

Listener Events

The onDeepLink listener receives a discriminated union. Exactly one of deepLink or error is present:

Multiple listeners can be registered simultaneously. Each receives every event. The native event subscription is cleaned up when the last listener is removed.

On this page