Bart ⚡
Bart ⚡5mo ago

Streaming in React Native?

Did anyone manage to run streaming on React Native?
6 Replies
Bart ⚡
Bart ⚡OP5mo ago
Nevermind, I did it 😉
BeBoRE
BeBoRE5mo ago
Could you explain how you got streaming working in React Native? What polyfills are you using?
Bart ⚡
Bart ⚡OP5mo ago
GitHub
GitHub - acostalima/react-native-polyfill-globals: Polyfills and pa...
Polyfills and patches missing or partially supported web and core APIs. - acostalima/react-native-polyfill-globals
BeBoRE
BeBoRE5mo ago
Damn only that one package?
Bart ⚡
Bart ⚡OP5mo ago
Yeah, it should work I'm experimenting with it currently
Flip
Flip4w ago
OPs didnt work and I am confused how it did as TextDecoderStream is not in 'react-native-globals-polyfill' I posted my solution here: https://stackoverflow.com/a/79428194/17990405
Stack Overflow
tRPC stream API response from OpenAI to React client
I am currently working on a way to implement the openai-node package into my Next.js application. Because of the long generation times of OpenAI completions, I want to make use of streaming (which is

Did you find this page helpful?