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). Handle both in your root component.

Basic Setup

With React Navigation

Cold Start vs Warm Start

ScenarioAPIWhen
Cold startgetInitialDeepLink()App was not running — launched by tapping a link
Warm startonDeepLink(listener)App was in background — brought to foreground by a link

Both should be set up in the same useEffect to handle all cases.

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