[BUG]: Android Cache fails on Loaded Resource #4243
Labels
Accepted
Issue is confirmed and accepted by maintainers team
bug
Platform: Android
Repro Provided
Waiting for Review
Version
6.7.0
What platforms are you having the problem on?
Android
System Version
any
On what device are you experiencing the issue?
Real device, Simulator
Architecture
Old architecture
What happened?
loaded resource
require("./asset/path")
will fail to load in production when cache enables. this is because with cache enabled, RNV will attempt to load resources as http and a local res URI will be a malformed URI.one solution could be an isUriLocalFile function, and use DefaultDataSource accordingly instead of http.
logs:
Reproduction Link
the example app
Reproduction
run the example app in production with cache on, and load the local file
The text was updated successfully, but these errors were encountered: