π React Native iOS 18 β Permission Issues When Accessing Selected Files (Audio, Images, Documents)
Hi React Native Devs π
I'm facing a critical issue when trying to select and access audio, image, or document files in my React Native app on iOS 18 (real device). The same code works fine on iOS 16 & 17.
π± Environment:
React Native: [your version]
iOS: 18 (real device)
Packages used:
react-native-document-picker
react-native-image-crop-picker
react-native-fs
π§ͺ Use Case:
I let users pick:
Audio files (e.g., MP3)
Images (via camera or library)
Documents (PDFs, etc.)
Then I either upload the file or play/view it locally using the file uri.
File URIs returned (e.g., from DocumentPicker or ImageCropPicker) point to:
swift
Copy
Edit
/private/var/mobile/Containers/Data/Application/.../tmp/
I recived the path it is encoded i have decoded that but still it is showing that you don't have permission to view it.
please help if anybody know the answer .
Top comments (0)