mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
using file uri for android
This commit is contained in:
parent
809d603cdf
commit
d66b208122
@ -50,7 +50,9 @@ export function useImageAsset(asset) {
|
||||
|
||||
useEffect(() => {
|
||||
if (asset.encrypted) {
|
||||
updateState({ url: asset.decrypted, failed: asset.error });
|
||||
const now = Date.now();
|
||||
const url = asset.decrypted ? `file://${asset.decrypted}?now=${now}` : null
|
||||
updateState({ url, failed: asset.error });
|
||||
}
|
||||
else {
|
||||
updateState({ url: asset.full });
|
||||
|
Loading…
Reference in New Issue
Block a user