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
6 changes: 3 additions & 3 deletions Viewport.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ - (instancetype)init
_lastKnownDimensions = RCTCurrentDimensions();

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(deviceOrientationDidChangeNotification:)
name:UIDeviceOrientationDidChangeNotification
selector:@selector(statusBarOrientationDidChangeNotification:)
name:UIApplicationDidChangeStatusBarOrientationNotification
object:nil];
}

Expand All @@ -54,7 +54,7 @@ - (void)dealloc

#pragma mark - Notification methods

- (void)deviceOrientationDidChangeNotification:(NSNotification*)note
- (void)statusBarOrientationDidChangeNotification:(NSNotification*)note
{
_lastKnownDimensions = RCTCurrentDimensions();
[_bridge.eventDispatcher sendDeviceEventWithName:@"dimensionsDidChange" body:_lastKnownDimensions];
Expand Down