WarpLink
SDKsReact Native

API Reference

The complete TypeScript API reference for the WarpLink React Native SDK: initialization, deep link events, and attribution.

The main entry point. Exported from @warplink/react-native.

configure(options)

Initialize the SDK. Synchronous — validates key format locally, delegates async validation to native SDK.

ParameterTypeDescription
optionsWarpLinkConfigConfiguration with API key and optional settings.

Throws: WarpLinkError with code E_INVALID_API_KEY_FORMAT if the key is invalid.

handleDeepLink(url)

Resolve a deep link URL to its link data.

Errors: E_NOT_CONFIGURED, E_INVALID_URL, E_LINK_NOT_FOUND, E_NETWORK_ERROR, E_SERVER_ERROR, E_INVALID_API_KEY, E_DECODING_ERROR

Check for a deferred deep link on first launch. Returns null on subsequent launches (cached).

Errors: E_NOT_CONFIGURED, E_NETWORK_ERROR, E_SERVER_ERROR, E_INVALID_API_KEY, E_DECODING_ERROR

getAttributionResult()

Get install attribution data. Returns null if no attribution match found.

isConfigured()

Check whether the SDK has been configured.

onDeepLink(listener)

Register a listener for warm-start deep link events. Returns an unsubscribe function.

Get the deep link that launched the app (cold start). Returns null if not launched via a link.


Types

WarpLinkConfig

AttributionResult

DeepLinkEvent

Discriminated union — exactly one of deepLink or error is present.

DeepLinkListener


Error Types

WarpLinkError

ErrorCodes

CodeDescription
E_NOT_CONFIGUREDSDK not initialized.
E_INVALID_API_KEY_FORMATKey format invalid.
E_INVALID_API_KEYKey rejected by server.
E_NETWORK_ERRORNetwork unreachable or timeout.
E_SERVER_ERRORServer returned 5xx.
E_INVALID_URLNot a recognized WarpLink domain.
E_LINK_NOT_FOUNDLink not found or inactive.
E_DECODING_ERRORMalformed server response.

On this page