Skip to content
Merged
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
19 changes: 0 additions & 19 deletions ios/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import WatchConnectivity
public class AppDelegate: ExpoAppDelegate {
var window: UIWindow?

// var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
var reactNativeDelegate: ReactNativeDelegate?
var reactNativeFactory: RCTReactNativeFactory?
var watchConnection: WatchConnection?
Expand All @@ -33,7 +32,6 @@ public class AppDelegate: ExpoAppDelegate {
ReplyNotification.configure()

let delegate = ReactNativeDelegate()
// let factory = ExpoReactNativeFactory(delegate: delegate)
let factory = RCTReactNativeFactory(delegate: delegate)
delegate.dependencyProvider = RCTAppDependencyProvider()

Expand Down Expand Up @@ -98,23 +96,6 @@ public class AppDelegate: ExpoAppDelegate {
}
}

//class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
// // Extension point for config-plugins
//
// override func sourceURL(for bridge: RCTBridge) -> URL? {
// // needed to return the correct URL for expo-dev-client.
// bridge.bundleURL ?? bundleURL()
// }
//
// override func bundleURL() -> URL? {
//#if DEBUG
// return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
//#else
// return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
//#endif
// }
//}

class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
Expand Down
Loading