itinance / itinance/react-native-fs

Cannot access to other folders by RNFS.exists()

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

Description

I use react-native-webview in my react-native-windows project.
So when the webview is loaded, it downloads static contents from web server to local cache folders.
But the webview cache folder is different from appx cache folder.
When I use react-native-fs function RNFS.exists() to judge if the web cache folder
(C:\Users\xxx\AppData\Local\Package\myproject\AC\) exists,
it catches an error that access denied.
I found a solution from microsoft website:
Adding
1) xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities",
2) IgnorableNamespaces="uap mp iot rescap"
3)
to Package.appxmanifest.
But now the site http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities return error like
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
How should I do to access other folders by RNFS.exists()?

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.