Guard refs that fail measure

This commit is contained in:
Eric Bailey
2026-04-14 16:18:16 -05:00
parent 81b5cdffd1
commit 2647c99274
+5 -1
View File
@@ -57,7 +57,11 @@ export function ImageEmbed({
'worklet'
const rects: (MeasuredDimensions | null)[] = []
for (const r of refs) {
rects.push(measure(r))
try {
rects.push(measure(r))
} catch {
rects.push(null)
}
}
runOnJS(_openLightbox)(index, rects, fetchedDims)
})()