Deep linking in Expo is a link that opens a specific screen inside an Expo app, and Expo Router gives every screen a URL, so, in Expo's own words, "deep linking is automatically enabled for all of your app's screens" (Expo, Overview of linking, read 2 December 2026).
The main benefit is one file tree for three kinds of link: a custom scheme link like myapp://home, an iOS Universal Link and an Android App Link on your own https domain all land on the same route file, with no linking config to write. The limit to plan around comes from Expo's iOS guide: the uncompressed apple-app-site-association file cannot be larger than 128 KB.
This expo router deep linking guide covers, in order, how Expo Router maps a URL to a screen, the custom scheme, iOS Universal Links, Android App Links, who hosts the two verification files, reading parameters, rewriting links no route matches, testing and Expo Go. Every command and config key below is copied from docs.expo.dev as read on 2 December 2026. The last sections compare Expo with bare React Native and cover keeping the screen through an install.
How does Expo Router map a URL to a screen?
Expo Router maps a URL to a screen by the file's place in src/app: every page has a URL path that matches its location, so src/app/home.tsx answers yourapp://home in the app and yourapp.com/home on the web (Expo, Core concepts of file-based routing).
Three rules from that page decide which file a link opens:
Initial route: the first
index.tsxthat matches/opens when a link has no path.Route groups: a directory in parentheses, like
(tabs), groups screens and does not count in the URL.Dynamic routes: a file like
src/app/records/[id].tsxtakes the matching segment as a route parameter.
src/app/
_layout.tsx root layout, no URL of its own
index.tsx /
home.tsx /home
(tabs)/index.tsx / (the group adds nothing to the URL)
records/[id].tsx /records/42
In practice, check the file tree before writing a single link: a screen that sits outside src/app has no URL, so no link reaches it. With the route tree in place, the next step is the scheme that carries links into the app.
How do you add a custom scheme in app config?
You add a custom scheme by setting scheme in the app config, then making a new build, which Expo says the scheme needs before it works (Expo, Linking into your app).
Set the scheme under
expoinapp.json.Create a new development build.
Install it on the device, then open
myapp://links.
{
"expo": {
"scheme": "myapp"
}
}
With no scheme set, Prebuild uses android.package and ios.bundleIdentifier as the default schemes in development and production builds. A scheme link has one hard limit, which Expo states plainly: if a user does not have your app installed, deep links to your app will not work. That is why Expo says "for most apps, you probably want to set up Android App/iOS Universal Links instead" of a scheme alone, or both. Smler's links are https links only, Universal Links and App Links, with no custom scheme, so the next two sections are the ones a Smler link relies on.
How do you set up iOS Universal Links in Expo?
You set up iOS Universal Links in Expo with a two-way association: a file on your website names the app, and the app's entitlement names the website (Expo, iOS Universal Links).
Create the
apple-app-site-associationfile in/.well-known, with your Apple Team ID and bundle identifier as theappIDand the paths the app should open.Host the file on your domain over HTTPS, and check your browser reaches it.
Add
ios.associatedDomainsto the app config asapplinks:plus the domain, with nohttps://.Build the app with Expo Build, which registers the entitlement with Apple.
Install the app on an iOS device to trigger verification.
{
"applinks": {
"apps": [],
"details": [
{
"appID": "QQ57RJ5UTD.com.example.myapp",
"paths": ["/records/*"]
}
]
}
}
{
"expo": {
"ios": {
"associatedDomains": ["applinks:expo.dev"]
}
}
}
The file follows Apple's rules in two places Expo spells out: the * wildcard does not match periods or slashes, and from iOS 13 the details entry accepts appIDs and an array of components that excludes paths and matches fragments. Expo calls a protocol in associatedDomains "a common mistake that will result in the universal links not working", and the uncompressed file cannot be larger than 128 KB. Expo's sample above uses the legacy appID and paths keys, and Apple's TN3155 asks you not to mix the two formats, so write a new file in the current appIDs and components format shown in the guide to the apple-app-site-association file. Check the file size whenever paths are added. Android needs the same two halves, written in a different file.
How do you configure Android App Links in Expo?
You configure Android App Links in Expo by adding android.intentFilters with autoVerify set to true, then hosting assetlinks.json on the domain, since Expo says autoVerify "is required for Android App Links to work correctly" (Expo, Android App Links).
Add the intent filter to the app config, with the https scheme, the host and the path prefix.
Create
assetlinks.jsonin/.well-known, withpackage_nameset to yourandroid.package.Run
eas credentials -p android, select the build profile and copy the value under SHA256 Fingerprint intosha256_cert_fingerprints; without Expo Build, copy it from the Play Console under Release, Setup, App Signing.Serve the file over HTTPS with the content type
application/json.Install the app on an Android device to start verification, and wait.
{
"expo": {
"android": {
"intentFilters": [
{
"action": "VIEW",
"autoVerify": true,
"data": [
{
"scheme": "https",
"host": "*.webapp.io",
"pathPrefix": "/records"
}
],
"category": ["BROWSABLE", "DEFAULT"]
}
]
}
}
}
Expo notes that Android verification "may take 20 seconds or longer", so wait before the first test. The fingerprint array holds several values, one for each signing key a variant of the app uses. Both platforms now point at a file on a domain, which raises the question of who serves it.
Who hosts the AASA and assetlinks.json files?
The owner of the link's domain hosts both files at /.well-known/ on that domain; Expo's guides place them in public/.well-known when the website is built with Expo Router, and the Expo app itself never serves them.
When the links run on a domain set up in Smler, Smler hosts both files for that domain from the content uploaded in its dashboard and serves them at /.well-known/apple-app-site-association and /.well-known/assetlinks.json, per Smler's deep links introduction. That domain is the one that goes into associatedDomains and into the intent filter's host. Expo's troubleshooting lists for both platforms give one rule for any change to these files: rebuild the native app so Apple and Google fetch them again. Once the files verify, the link reaches the route, and the route needs its values.
How do you read link parameters in a screen?
You read link parameters by calling useLocalSearchParams in the route file: route parameters come from the dynamic segment, and search parameters from the query string (Expo, Using URL parameters).
import { useLocalSearchParams } from 'expo-router';
export default function User() {
const {
// The route parameter
user,
// An optional search parameter.
tab,
} = useLocalSearchParams<{ user: string; tab?: string }>();
console.log({ user, tab });
// Given the URL: `/bacon?tab=projects`, the following is printed:
// { user: 'bacon', tab: 'projects' }
}
Use the local hook by default. Its counterpart, useGlobalSearchParams, updates on every URL change and re-renders screens in the background; Expo says it "can cause performance issues if overused." Expo Router reads the URL hash as a search parameter named #.
Never name a link parameter screen, params, initial or state. Expo reserves these four for Expo Router and React Navigation, and a campaign value under one of them collides with the router. Some links carry a URL no file matches at all, which is the next case.
How do you rewrite a link that matches no route?
You rewrite a link that matches no route in src/app/+native-intent.tsx, a file that exports redirectSystemPath, which receives { path, initial } and returns the path to open (Expo, Customizing links).
Create
src/app/+native-intent.tsxat the top level of the app directory.Export
redirectSystemPathand return the route each incoming URL should open.Wrap the body in
tryand return an error route fromcatch.Add
src/app/+not-found.tsxfor any URL that still matches nothing, with a link to/.
Expo names two kinds of URL this file is for: links from third-party providers, in a form like <my-scheme>://<provider-hostname>/<uuid>, and stale links from older versions of the app. A Smler short link is the first kind: it arrives as https://yourcustomdomain.com/short-link, and Smler's docs resolve it to its long URL with Smler's endpoint before the app opens a screen. Expo's own warning for this function is blunt: "Do not crash inside this function!" Keep two limits in mind, both from Expo: +native-intent runs only in native apps, and it runs outside the app's context, with no access to login state. For +not-found.tsx, Expo's error handling page recommends a link back to /. With every link landing somewhere, each kind needs a test.
How do you test an Expo deep link?
You test an Expo deep link on a build of your own app, one command per kind of link, since each kind fails in its own way.
Test a scheme link with
npx uri-scheme open myapp://somepath/details --ios, or--androidfor Android.Test Universal Links and App Links before a website exists: set
EXPO_TUNNEL_SUBDOMAIN=my-custom-domain, putmy-custom-domain.ngrok.ioinassociatedDomainsand in the intent filter'shost, and runnpx expo start --tunnel.Compile the development build with
npx expo run:iosornpx expo run:android, then open the tunnel link in the device's browser.Open an App Link on Android with
adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://my-custom-domain.ngrok.io/" <your-package-name>.Check the hosted files with Smler's free AASA validator and assetlinks.json checker.
For an expo deep linking test, tap the link from a web page or another app: Expo notes that entering a scheme link in the address bar "may not work as expected." Test each link with the app closed and again with it open, since the first open and a later one take different paths. Where the app runs matters as much as the command, which brings up Expo Go.
Why does Expo Go limit deep link testing?
Expo Go limits deep link testing because it is one shared app with its own exp:// scheme, while your scheme, associated domains and intent filters live in a native build of your app; Expo says support for incoming links in Expo Go "is limited" and recommends development builds for testing linking.
Inside Expo Go a link looks like exp://127.0.0.1:8081/--/somepath/into/app?hello=world, where /--/ tells Expo Go the rest is the deep link path. To test your real links, make a development build (Expo, Introduction to development builds):
Run
npx expo install expo-dev-client.Run
npx expo run:iosornpx expo run:androidto build on your machine, oreas build --platform <platform> --profile developmentto build with Expo Build.Start the server with
npx expo start.
Expo lists a change to app.json as a reason to regenerate the native directories with npx expo prebuild --clean and rebuild, so every change to the scheme, the domains or the intent filters means a new build. The expo router deep linking configuration so far is Expo's own; how it compares with plain React Native is the last core question.
How does Expo differ from bare React Native for deep links?
Expo differs from bare React Native in where the setup lives: the scheme, the associated domains and the intent filters go into the app config instead of Info.plist and AndroidManifest.xml, and Expo Router replaces the linking config, since "you don't have to configure runtime routing separately" (Expo, Overview of linking).
The platform rules stay the same. Apple and Google verify the same two files, the same paths match, and the same tests apply. For the React Navigation setup, with Linking.getInitialURL() and a prefixes config, see react native deep linking, and for why an https link behaves differently from a scheme link, see universal links vs deep links. Everything above assumes the app is already on the phone; the last question is what happens when it isn't.
How do you keep the link's screen through an app install?
You keep the link's screen through an app install with deferred deep linking, since Expo's own Limitations section says "if a user does not have your app installed, deep links to your app will not work" and points to attribution services for that case.
Smler's deferred deep linking keeps the click across the install and hands it back on the first open: on Android it reads the Play Install Referrer, and on iOS it reads the clipboard, with probabilistic matching as a fallback. Smler's React Native SDK, @smler/deferred-link, works in Expo apps through a development client; it does not run in Expo Go. Its installation page lists "You are not using Expo Go" among the checks when the module fails to link. Every plan on Smler's pricing page is metered by attributed installs, and the Free plan gives 25,000 a month with unlimited clicks.