Skip to content

Commit

Permalink
Update RNPhotoEditor.m
Browse files Browse the repository at this point in the history
  • Loading branch information
karn18 committed Oct 4, 2019
1 parent a7afb09 commit cbf060a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ios/RNPhotoEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ - (void)canceledEditing {

// Invoke Editor
photoEditor.photoEditorDelegate = self;

// The default modal presenting is page sheet in ios 13, not full screen
if (@available(iOS 13, *)) {
[photoEditor setModalPresentationStyle: UIModalPresentationFullScreen];
}

id<UIApplicationDelegate> app = [[UIApplication sharedApplication] delegate];
UINavigationController *rootViewController = ((UINavigationController*) app.window.rootViewController);
Expand Down

0 comments on commit cbf060a

Please sign in to comment.