Closed ionflow closed 10 months ago
Maybe the JSI installer func did not get installed? Could you try setting a breakpoint on the native side
I forgot to run npx pod-install
. Now that error is gone.
As a side note, I don't think I'm using this correctly. Should this work?
const blob = getBlobForArrayBuffer(event.data);
const url = URL.createObjectURL(blob);
setMessages((prevMessages) => [...prevMessages, url]);
...
{messages.map((message, index) => {
<Image
key={`image-${index}`}
source={{ uri: message}}
style={{ width: 200, height: 200, resizeMode: "contain" }}
/>
})}
Currently it's just rendering a white box, but no errors.
console.log("url:", url);
produces "url: blob:07A92E30-BD23-401F-83B4-771487CB1816?offset=0&size=undefined"
I don't know what event
is, sorry.
It's just a websocket MessageEvent
. In my case event.data
is an ArrayBuffer
.
Does this error mean I'm not adding this library properly? I'm trying to use binary data (PNG image) sent through a websocket in an Image component in react native.
These are the steps I followed to install:
npx expo install react-native-blob-jsi-helper
eas build --profile development --platform ios
to run a fresh buildnpx expo start --dev-client
locally