Created
September 30, 2024 14:17
-
-
Save okwasniewski/33712908f938f066f43da109292d3729 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import React | |
import React_RCTAppDelegate | |
class AppDelegate: RCTAppDelegate { | |
// ... application didFinishLaunchingWithOptions | |
override func sourceURL(for bridge: RCTBridge) -> URL? { | |
self.bundleURL() | |
} | |
override func bundleURL() -> URL? { | |
#if DEBUG | |
RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") | |
#else | |
Bundle.main.url(forResource: "main", withExtension: "jsbundle") | |
#endif | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment