Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/ios-open-url-linking-first.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@callstack/react-native-brownfield': patch
---

iOS (Expo host): `application(_:open:options:)` now always forwards the URL to React Native linking before asking the Expo app delegate subscribers, so a subscriber that returns `true` (for example `expo-dev-launcher` in a debug build) no longer prevents the JS `Linking` `url` event. This matches the existing `application(_:continue:restorationHandler:)` order.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ final class ExpoHostRuntime {
open url: URL,
options: [UIApplication.OpenURLOptionsKey: Any] = [:]
) -> Bool {
return (expoDelegate?.application(app, open: url, options: options) ?? false) || RCTLinkingManager.application(app, open: url, options: options)
let result = RCTLinkingManager.application(app, open: url, options: options)
return (expoDelegate?.application(app, open: url, options: options) ?? false) || result
}

// Universal Links; base implementation courtesy of Expo, licensed under the MIT License - changes were made to call the method on expo delegate - https://github.com/expo/expo/blob/main/apps/bare-expo/ios/AppDelegate.swift
Expand Down