Skip to content

Commit 2a25f5f

Browse files
Update presentLimited to new TopView Controller
1 parent 8f0c191 commit 2a25f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/PhotoLibrary/RNPermissionHandlerPhotoLibrary.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ - (void)openLimitedPhotoLibraryPickerWithResolver:(RCTPromiseResolveBlock _Nonnu
6666
}
6767

6868
UIViewController* rootViewController = [[UIApplication sharedApplication].keyWindow rootViewController];
69-
[[PHPhotoLibrary sharedPhotoLibrary] presentLimitedLibraryPickerFromViewController:rootViewController];
69+
[[PHPhotoLibrary sharedPhotoLibrary] presentLimitedLibraryPickerFromViewController:topViewController];
7070

7171
resolve(@(true));
7272
} else {

0 commit comments

Comments
 (0)