Skip to content

Commit

Permalink
add fix for expo release builds
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Linton <[email protected]>
  • Loading branch information
ryanlntn committed Aug 9, 2024
1 parent fda1900 commit 087ae2b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/web/supported-browsers-and-frameworks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,13 @@ import { ReadableStream } from "web-streams-polyfill"
polyfillGlobal("ReadableStream", () => ReadableStream)
polyfillGlobal("TextDecoder", () => TextEncoder)
polyfillGlobal("TextEncoder", () => TextEncoder)
polyfillGlobal("fetch", () => fetch)
polyfillGlobal(
"fetch", () => (...args) => fetch(args[0], {
...args[1],
// Inject textStreaming: https://github.com/react-native-community/fetch/issues/15
reactNative: { textStreaming: true }
}),
)
polyfillGlobal("Headers", () => Headers)
polyfillGlobal("Request", () => Request)
polyfillGlobal("Response", () => Response)
Expand Down

0 comments on commit 087ae2b

Please sign in to comment.