diff --git a/README.md b/README.md index 2ce94ba7..501f2b30 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ Open a system directory picker. Returns a promise that resolves to (`{ uri: stri `pickSingle` and `pickMultiple` are "sugar functions" on top of `pick`, and they _might be removed_ in a future release for increased API clarity. -- `pickSingle` will only allow a single selection and the Promise will resolve to that single result (same behavior as `pick` in v5) -- `pickMultiple` will allow multiple selection and the Promise will resolve to an array of results. +- `pickSingle` only allows a single selection and the Promise will resolve to that single result (same behavior as `pick` in v5) +- `pickMultiple` allows multiple selection and the Promise will resolve to an array of results. ### Options @@ -63,6 +63,10 @@ The type or types of documents to allow selection of. May be an array of types a - On iOS these must be Apple "[Uniform Type Identifiers](https://developer.apple.com/library/content/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html)" - If `type` is omitted it will be treated as `*/*` or `public.item`. +##### [iOS only] `presentationStyle`:`'fullScreen' | 'pageSheet' | 'formSheet' | 'overFullScreen'` + +Controls how the picker is presented, eg. on an iPad you may want to present it fullscreen. Defaults to `pageSheet`. + ##### [iOS only] `mode`:`"import" | "open"`: Defaults to `import`. If `mode` is set to `import` the document picker imports the file from outside to inside the sandbox, otherwise if `mode` is set to `open` the document picker opens the file right in place. diff --git a/example/ios/DocumentPickerExample.xcodeproj/project.pbxproj b/example/ios/DocumentPickerExample.xcodeproj/project.pbxproj index e40aa663..66addb17 100644 --- a/example/ios/DocumentPickerExample.xcodeproj/project.pbxproj +++ b/example/ios/DocumentPickerExample.xcodeproj/project.pbxproj @@ -555,6 +555,7 @@ PRODUCT_NAME = DocumentPickerExample; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; @@ -577,6 +578,7 @@ PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativedocumentpicker; PRODUCT_NAME = DocumentPickerExample; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; diff --git a/example/src/App.tsx b/example/src/App.tsx index 0ea71545..112c4fc6 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -29,7 +29,9 @@ export default function App() {