mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-26 14:50:26 -05:00
Fix images recycling keys
This commit is contained in:
parent
2deeaaf97e
commit
0f62854128
@ -28,10 +28,12 @@ export const ImageBackground = ({
|
||||
const { css, theme } = useYoshiki();
|
||||
const { apiUrl, authToken } = useToken();
|
||||
|
||||
const uri = src ? `${apiUrl}${src[quality ?? "high"]}` : null;
|
||||
return (
|
||||
<EImageBackground
|
||||
recyclingKey={uri}
|
||||
source={{
|
||||
uri: src ? `${apiUrl}${src[quality ?? "high"]}` : null,
|
||||
uri,
|
||||
// use cookies on web to allow `img` to make the call instead of js
|
||||
headers:
|
||||
authToken && Platform.OS !== "web"
|
||||
|
||||
@ -37,10 +37,12 @@ export const Image = ({
|
||||
const { css, theme } = useYoshiki();
|
||||
const { apiUrl, authToken } = useToken();
|
||||
|
||||
const uri = src ? `${apiUrl}${src[quality ?? "high"]}` : null;
|
||||
return (
|
||||
<EImage
|
||||
recyclingKey={uri}
|
||||
source={{
|
||||
uri: src ? `${apiUrl}${src[quality ?? "high"]}` : null,
|
||||
uri,
|
||||
// use cookies on web to allow `img` to make the call instead of js
|
||||
headers:
|
||||
authToken && Platform.OS !== "web"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user