Fix render loop on Android (#6213)

This commit is contained in:
dan
2024-11-10 20:30:31 +00:00
committed by GitHub
parent 89c93313a3
commit b4412f3333
3 changed files with 23 additions and 11 deletions
+7 -3
View File
@@ -113,9 +113,13 @@ export function AutoSizedImage({
accessibilityIgnoresInvertColors
accessibilityLabel={image.alt}
accessibilityHint=""
onLoad={e => {
setFetchedDims({width: e.source.width, height: e.source.height})
}}
onLoad={
fetchedDims
? undefined
: e => {
setFetchedDims({width: e.source.width, height: e.source.height})
}
}
/>
<MediaInsetBorder />