Skip to content
Open
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 template/ios/HelloWorld/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}

class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
#if !RCT_REMOVE_LEGACY_ARCH
// Required by `RCTBridgeDelegate` until the legacy architecture is fully
// removed. On newer React Native versions this symbol no longer exists, so
// the override is compiled out via SWIFT_ACTIVE_COMPILATION_CONDITIONS.
override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}
#endif

override func bundleURL() -> URL? {
#if DEBUG
Expand Down