Skip to content

Commit

Permalink
[dev-launcher][ios] fix deferred deep links (expo#18614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsmth authored and Ddv0623 committed Sep 26, 2022
1 parent 34514d7 commit 8f31921
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/expo-dev-launcher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
### 🐛 Bug fixes

- Fixed `the function must be called on main queue` error when the app is reload from the error screen on iOS. ([#18563](https://github.com/expo/expo/pull/18563) by [@lukmccall](https://github.com/lukmccall))
- Fix deferred deep link handling on iOS. ([#18614](https://github.com/expo/expo/pull/18614)) by [@ajsmth](https://github.com/ajsmth)

### 💡 Others

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,19 @@ public class ExpoDevLauncherReactDelegateHandler: ExpoReactDelegateHandler, RCTB
// MARK: EXDevelopmentClientControllerDelegate implementations

public func devLauncherController(_ developmentClientController: EXDevLauncherController, didStartWithSuccess success: Bool) {
let bridge = RCTBridge(delegate: self.bridgeDelegate, launchOptions: self.launchOptions)
var launchOptions: [AnyHashable: Any] = [:]

if let initialLaunchOptions = self.launchOptions {
for (key, value) in initialLaunchOptions {
launchOptions[key] = value
}
}

for (key, value) in developmentClientController.getLaunchOptions() {
launchOptions[key] = value
}

let bridge = RCTBridge(delegate: self.bridgeDelegate, launchOptions: launchOptions)
developmentClientController.appBridge = bridge

let rootView = RCTRootView(bridge: bridge!, moduleName: self.rootViewModuleName!, initialProperties: self.rootViewInitialProperties)
Expand Down

0 comments on commit 8f31921

Please sign in to comment.