Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: experimental polyfill for fetch for GET request to handle arraybuffer response #33

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Nuhvi
Copy link
Contributor

@Nuhvi Nuhvi commented Sep 8, 2023

No description provided.

@Nuhvi Nuhvi force-pushed the react-native-fetch-hack branch from 64afe63 to a8bca8e Compare September 11, 2023 11:02
@Nuhvi
Copy link
Contributor Author

Nuhvi commented Sep 12, 2023

Probably will close this PR, every time I solve an issue Bitkit gets more new errors. Bitkit should fix its own Fetch problems, but in the meantime I will try to use base64 encoded images in feeds

@mainmode1
Copy link

Old PR, but https://github.com/acostalima/react-native-polyfill-globals ?
ie.:

npm i react-native-fetch-api react-native-polyfill-globals
import { polyfill as polyfillEncoding } from "react-native-polyfill-globals/src/encoding";
import { polyfill as polyfillReadableStream } from "react-native-polyfill-globals/src/readable-stream";
import { polyfill as polyfillFetch } from "react-native-polyfill-globals/src/fetch";

polyfillReadableStream();
polyfillEncoding();
polyfillFetch();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants