React Native Deep Linking Implementation Guide for Universal Links and App Links
deep linkingUniversal LinksApp LinksReact Native navigationmobile web

React Native Deep Linking Implementation Guide for Universal Links and App Links

RReact Native Store Editorial Team
2026-12-01
5 min read

A practical React Native deep linking guide covering URL schemes, Universal Links, App Links, navigation state, auth redirects, and release testing.

React Native deep linking connects a URL to a specific screen, whether the app is already open, suspended, or being launched for the first time. This guide provides a repeatable implementation workflow for custom URL schemes, iOS Universal Links, Android App Links, navigation state, authentication redirects, fallback pages, and release testing.

Overview

A deep link has two parts: a URL that identifies the destination and native configuration that gives the operating system permission to open your app. For example, https://example.com/orders/42 might open an order-details screen, while a custom scheme such as myapp://orders/42 can open the same route during development.

There are three common layers to implement:

  • URL handling: Define the schemes, domains, paths, and query parameters your app accepts.
  • Native association: Configure iOS Associated Domains and Android App Links so verified web links can open the installed app.
  • Navigation resolution: Convert the incoming URL into navigation state and decide what happens when the user is signed out, the route is invalid, or the app is still loading.

A reliable design treats the web URL as an input, not as permission to display arbitrary content. Validate route parameters, avoid placing secrets in URLs, and make every destination safe to open more than once.

How to estimate

Before implementation, estimate the work by scoring the link surface rather than counting screens alone. Create a small table with one row per link pattern and record five inputs:

  1. Destination complexity: Is it a public screen, a nested screen, or a resource that requires data loading?
  2. Authentication behavior: Can a signed-out user view the destination, or must the app preserve the intended route through login?
  3. Platform coverage: Will the link use a custom scheme only, or must it work as a verified Universal Link and App Link?
  4. Lifecycle states: Has the path been tested during cold start, warm start, background resume, and an existing navigation stack?
  5. Fallback needs: What should happen on an uninstalled device, an unsupported route, or an expired resource?

Use the total to prioritize engineering and QA. A public, single-screen custom-scheme link has a small surface area. A marketing link that opens a protected nested route on both platforms has a larger one because it combines association files, authentication state, analytics decisions, and multiple app lifecycle states.

A practical estimate should include implementation, device testing, and release verification separately. Configuration may appear correct in a simulator while failing on a signed production build, so do not treat a successful local URL test as completion.

Inputs and assumptions

Choose a stable URL model

Use readable paths that map to product concepts, such as /products/sku-123 or /invite/token. Keep the path contract stable when possible. If a route changes, support a redirect or an explicit migration rather than silently opening the home screen.

Prefer HTTPS links for user-facing and marketing journeys. A custom scheme is useful for development and internal flows, but it does not provide the same domain ownership signal as a verified web link.

Configure React Native navigation

With a navigation library, define a linking configuration that includes the accepted prefixes and a screen-to-path map. The exact option names depend on the navigation version, but the configuration should account for nested navigators, path parameters, query parameters, and an initial route.

Also handle links received after startup. The initial URL is different from a URL delivered while the app is already running. Centralize both paths through one parser so the same validation and authentication rules apply in every lifecycle state.

Add the appropriate Associated Domains capability to the iOS target and declare the web domain using the applinks: prefix. The domain must serve an apple-app-site-association file over HTTPS at the expected location, without relying on an extension. The file must identify the application and the URL paths it can open.

Check the application identifier, team-related values, paths, and production domain carefully. A mismatch can cause iOS to open Safari even when the React Native linking code is correct.

Declare an HTTPS intent filter for the host and paths in the Android manifest. For verified links, publish an assetlinks.json file at the domain's /.well-known/ location. It must identify the Android package and the signing certificate used by the installed build.

Keep build variants in mind. A development application, staging application, and production application may use different package names, certificates, or domains. Treat each combination as a separate association to verify.

Worked examples

Example 1: Public product route

Suppose the intended link is https://shop.example.com/products/sku-123. The navigation map should translate sku-123 into a product-detail route. On receipt, the app should validate the identifier, load the product, and show a defined error state if the item is unavailable. If the app is not installed, the web page should remain useful and provide the appropriate store or browser experience without assuming the app opened.

Example 2: Protected invitation route

For https://example.com/invite/abc, preserve the invitation destination while authentication completes. Do not place an access token in a query string merely to simplify routing. Instead, validate the invitation through a secure application flow, then consume it once the user is authorized. Test an expired invitation, a user who is already signed in, and a user who signs in to a different account.

Example 3: Troubleshooting matrix

SymptomLikely areaFirst check
Custom scheme does nothingManifest or URL handlingConfirm the scheme, intent configuration, and JavaScript listener.
iOS opens the browserUniversal Link associationCheck the domain entitlement, association file, app identifier, and exact path.
Android opens the browserApp Link verificationCheck the intent filter, package name, signing certificate, and asset links file.
Cold start loses the routeInitial navigation stateResolve the initial URL before rendering or queue it until navigation is ready.
Warm start duplicates screensEvent handlingEnsure one listener owns incoming URLs and applies an idempotent navigation action.

When to recalculate

Revisit the deep-link estimate whenever a domain, package name, signing certificate, navigation structure, authentication flow, or release channel changes. Also repeat the review after a React Native, Expo, navigation-library, iOS, or Android upgrade because native configuration and lifecycle behavior can change.

Before each release, run a compact matrix on physical devices: app installed versus not installed, cold start versus warm start, signed-in versus signed-out, valid versus invalid route, and production versus staging domain. Confirm that browser fallbacks are useful, association files are served from the intended host, and analytics do not count one user action twice.

Keep the URL contract, native association files, navigation map, and test cases in the same change review. That habit makes new routes easier to estimate and prevents a JavaScript-only change from overlooking the native configuration required for React Native Universal Links and Android App Links.

For adjacent release and QA work, see the React Native iOS and Android Release Signing Checklist, the React Native Testing Tools guide, and the React Native Upgrade Compatibility Checklist.

Related Topics

#deep linking#Universal Links#App Links#React Native navigation#mobile web
R

React Native Store Editorial Team

Senior SEO Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.