Expo
Use react-native-lander in an Expo app with the config plugin and a development build.
react-native-lander has native code, so it runs in an Expo development build or a production build from EAS, not in Expo Go. Its config plugin writes the native setup (Associated Domains, the App Links intent filter and your custom scheme) for you whenever you run expo prebuild, so you never edit the ios and android folders by hand.
Install the package
npx expo install react-native-landerAdd your apps in the dashboard
The plugin handles your app's side of the link. The domain's side still comes from the dashboard: fill in the iOS app and Android app cards in Build > Platforms as described in step 1 of iOS setup and steps 1 and 2 of Android setup. Use your ios.bundleIdentifier and android.package from app.json, your Apple Team ID, and the SHA-256 fingerprints of every key that signs your Android builds (eas credentials shows the one EAS uses).
Add the config plugin
{
"expo": {
"name": "Acme Shop",
"scheme": "acmeshop",
"ios": {
"bundleIdentifier": "com.acme.shop"
},
"android": {
"package": "com.acme.shop"
},
"plugins": [
["react-native-lander", { "domains": ["acme.golander.link"] }]
]
}
}| Option | Type | What it adds |
|---|---|---|
domains | string[] | For each domain: applinks:<domain> in the iOS Associated Domains entitlement, and an android:autoVerify="true" intent filter for https://<domain> on the main activity. List your hosted Lander domain and every custom domain. |
scheme | string or string[] (optional) | A custom URL scheme: an entry in iOS CFBundleURLTypes and a VIEW intent filter on Android. Skipped when Expo's own top level scheme already adds it. |
We recommend Expo's top level "scheme" field (as above) over the plugin's scheme option, since Expo Router and expo-linking read it too. Either way, enter the same scheme as the URI scheme of both apps in Build > Platforms.
Build
# Local native projects
npx expo prebuild
npx expo run:ios
npx expo run:android
# Or in the cloud
eas build --profile developmentAfter changing the plugin options, run npx expo prebuild --clean (or start a new EAS build) so the native projects are regenerated.
Initialize and route
Initialize in your root layout's module scope, then handle links as described in Receiving links. With Expo Router, also add the +native-intent.tsx file from that section, otherwise Expo Router opens Lander URLs on its own as well.
import { Stack } from 'expo-router'
import { Lander } from 'react-native-lander'
Lander.initialize({ apiKey: process.env.EXPO_PUBLIC_LANDER_KEY ?? '', enableLogging: __DEV__ })
export default function RootLayout() {
return <Stack />
}Expo Go
Expo Go cannot load the package's native module. If you open the app in Expo Go anyway, the SDK logs one warning, keeps the install ID in memory only and skips the launch report, so nothing is attributed. Links are still resolved and reach your listeners, which is enough to try your routing, but test attribution and deferred links in a development build.
What the plugin writes
For domains: ["acme.golander.link"] and scheme: "acmeshop", the generated native projects contain the same entries the manual setup pages describe:
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:acme.golander.link</string>
</array><intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="acme.golander.link" />
</intent-filter>On iOS, the AppDelegate that Expo generates already forwards links to RCTLinkingManager, so there is no AppDelegate code to add.