React-native-document-picker: How to access local files in ios.

Created on 10 Sep 2018  路  23Comments  路  Source: rnmods/react-native-document-picker

I want to access local files. but it whenever i click on browse option.
screen shot 2018-09-10 at 11 46 41 am
It only shows iCloud Drive Location on my simulator.
screen shot 2018-09-10 at 11 47 38 am

All 23 comments

+1 is there any solution?

+1

+1

Please update if you find any solution @2vm @Bolik @sakymar @Elyx0

Does this happen only in the simulator? Does it happen in a real device too?

Yes for both devices

+1

I don't think this is possible due to the way the iOS file system is locked down:

Files in iOS are stored in the app that can manage them. Note in Notes, documents in Pages, pdfs in iBooks or Acrobat, etc. But those apps and their "folders" only appear in the Files app if they have been updated to support this.
Files stored on a cloud server can be viewed in the cloud server app, which may also be accessible from Files.

https://discussions.apple.com/message/32454580#message32454580

Anyone had much luck with this?

Any luck?

Is there any solution for it?

+1 facing the same problem

I added these values to the root <dict> inside my app's Info.plist and I can now see local files:

<key>UIFileSharingEnabled</key>
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true/>

LSSupportsOpeningDocumentsInPlace

How ? I already added to and It still not showing .... plz Help me ...

Is there any solution for it?

Yes for both devices

Did you try it out with release mode on a real ios device by any chance?

It's available in iOS 13 (or at least on my iPad on iOS 13, missing from Simulator)

any solution? it is happening in IOS 12 and above it seems

+1

+1 having the same problem

Did anyone get a solution?

This solution worked perfectly on Xcode 10.1 and ios 12.1 for creating a custom folder and downloading a document in it.
https://stackoverflow.com/a/56513345/7430014
Simulator Screen Shot - iPad Pro (10 5-inch) - 2019-10-17 at 11 49 37

Little addition to this, colour tag your file in ios to find it later in your project application with ease.

Simulator Screen Shot - iPad Pro (10 5-inch) - 2019-10-17 at 11 49 47

hello, I'm closing this because availability of local files is managed by the OS (the files app)

latest ios has this functionality: https://support.apple.com/en-us/HT206481

Was this page helpful?
0 / 5 - 0 ratings