Skip to content

Commit 393fcc8

Browse files
authored
fix: Add missing event dispatcher for tvOS and macOS in legacy arch (#670)
1 parent e8b8d93 commit 393fcc8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ios/RNCSafeAreaProvider.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ - (instancetype)initWithEventDispatcher:(id<RCTEventDispatcherProtocol>)eventDis
2323
RCTAssertParam(eventDispatcher);
2424

2525
if ((self = [super initWithFrame:CGRectZero])) {
26-
#if !TARGET_OS_TV && !TARGET_OS_OSX
27-
2826
_eventDispatcher = eventDispatcher;
2927

28+
#if !TARGET_OS_TV && !TARGET_OS_OSX
3029
[NSNotificationCenter.defaultCenter addObserver:self
3130
selector:@selector(invalidateSafeAreaInsets)
3231
name:UIKeyboardDidShowNotification

0 commit comments

Comments
 (0)