I found a workaround here, and I hope including this into cross-fetch will be beneficial.
BTW, forking and customizing this repository is basically for the convenience of my own project, and I understand that cross-fetch should only serve as a proxy for the existing libraries and should not add new features. So I will leave this pr as a draft and it is open to adjustments or rejection.
hey @UNIDY2002 ! thanks for your PR. Unfortunately cross-fetch, as you mentioned, was created just to be a proxy to other libs that implement those features. So I'll have to close this PR. Thanks any way!
It's been a long-standing problem that react-native fetch does not implement
readAsArrayBuffer
(which will causefetch(...).then(r => r.arrayBuffer())
to throw an exception).I found a workaround here, and I hope including this into
cross-fetch
will be beneficial.BTW, forking and customizing this repository is basically for the convenience of my own project, and I understand that
cross-fetch
should only serve as a proxy for the existing libraries and should not add new features. So I will leave this pr as a draft and it is open to adjustments or rejection.