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.
Comment on lines +38 to +40
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is too much verbose for being in the default template. The average users doesn't need to know about this at all

override func sourceURL(for bridge: RCTBridge) -> URL? {
self.bundleURL()
}
#endif

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