make this a worklet?>

This commit is contained in:
Violet Caulfield
2025-03-23 07:43:35 -05:00
parent 47beb7d573
commit ba612ecd07

View File

@@ -42,6 +42,7 @@ export function fetchItemImage(itemId: string, imageType: ImageType, width: numb
function blobToBase64(blob : Blob) {
return new Promise<string>((resolve, _) => {
runOnRuntime(backgroundRuntime, (blob : Blob) => {
'worklet'
const reader = new FileReader();
reader.onloadend = () => resolve(reader.result as string);
reader.readAsDataURL(blob);