Open
Description
Hey,
I cannot get the reader from the readableStream I get following Error:
Error: [TypeError: This stream has already been locked for exclusive reading by another reader]
I also have added the auto import for the polyfills to the root _layout.tsx as I use filebased routing.
import 'react-native-polyfill-globals/auto';
const res = await fetch("https://www.lotti.ai/api/lotti", {
method: "POST",
headers: {
"Content-Type": "application/json",
Connection: "keep-alive",
},
mode: "cors",
body: JSON.stringify(message),
"reactNative": { textStreaming: true }
})
const reader = res.body?.getReader();

I should also mention that the type for reactNative: {textStreaming: true} seems to not be detected correctly:
Metadata
Metadata
Assignees
Labels
No labels