itinance / itinance/react-native-fs

Exist returns false on saved path if app was reopened [iOS]

Open
#1,076 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

React-native: 0.66.4
react-native-fs: ^2.18.0
Platform: iOS
I've used react-native-document-picker in order to obtain a full path of a file that is picked and the path of that file is saved later in async storage.
The path looks like this file:///private/var/mobile/Containers/Shared/AppGroup/1762B26C-CC73-47D9-9211-EC761FBCB678/File Provider Storage/Downloads/Docs.zip
I check if that file exists via react-native-fs exist() method which works correctly, and returns true if app isn't reopened, it returns false otherwise.
I have checked that file path doesn't change on app reopen, it remains the same.
This only reproduces on iOS.
After 'repicking' the file, it immediately works again.
Is there any solution to this?
Maybe i'm missing some permission-related stuff?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.