Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for iOS 14 #398

Closed
nkpatnis opened this issue Mar 18, 2021 · 0 comments 路 Fixed by #477
Closed

Bugfix for iOS 14 #398

nkpatnis opened this issue Mar 18, 2021 · 0 comments 路 Fixed by #477

Comments

@nkpatnis
Copy link

nkpatnis commented Mar 18, 2021

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch react-native-document-picker@5.0.2 for the project I'm working on.

Description : BUG364

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-document-picker/ios/RNDocumentPicker/RNDocumentPicker.m b/node_modules/react-native-document-picker/ios/RNDocumentPicker/RNDocumentPicker.m
index 612a7e3..b366fcf 100644
--- a/node_modules/react-native-document-picker/ios/RNDocumentPicker/RNDocumentPicker.m
+++ b/node_modules/react-native-document-picker/ios/RNDocumentPicker/RNDocumentPicker.m
@@ -74,7 +74,8 @@ RCT_EXPORT_METHOD(pick:(NSDictionary *)options
     NSArray *allowedUTIs = [RCTConvert NSArray:options[OPTION_TYPE]];
     UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:(NSArray *)allowedUTIs inMode:mode];
     documentPicker.delegate = self;
-    documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
+    [documentPicker setModalPresentationStyle: UIModalPresentationFullScreen];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant