Skip to content

Commit

Permalink
[expo-modules-core][iOS] fix TV issue in AppDelegates (expo#26371)
Browse files Browse the repository at this point in the history
One line fix for tvOS compilation of new app delegate code.

The CI that tests tvOS compilation didn't catch this, because the error
only happens at runtime (crash with missing selector).

# Test Plan

- Tested locally with TV app
- CI should pass
  • Loading branch information
douglowder authored Jan 11, 2024
1 parent cee0605 commit 3617686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open class ExpoAppDelegate: UIResponder, UIApplicationDelegate {
@objc
public let reactDelegate = ExpoReactDelegate(handlers: reactDelegateHandlers)

#if os(iOS)
#if os(iOS) || os(tvOS)
// MARK: - Initializing the App

open func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
Expand Down

0 comments on commit 3617686

Please sign in to comment.