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(native): restore polyfill conversions, drop networking #3050

Merged
merged 8 commits into from
Oct 21, 2023

Conversation

CodyJasonBennett
Copy link
Member

@CodyJasonBennett CodyJasonBennett commented Oct 21, 2023

Fixes #1972
Fixes #3049

#3042 introduced a logical regression for Android APK, but also operated under a false premise that previous anonymous errors came from Blob/FileReader internals and instead was from XMLHttpRequest. Although FileReader.readAsArrayBuffer was since implemented in react-native (polyfill available for older versions), fetch still has issues loading data or local uris. I've mirrored #3049 (comment) with buffer which implements such and restored enhancements from #2982.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 21, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 248b895:

Sandbox Source
example Configuration

@CodyJasonBennett CodyJasonBennett marked this pull request as draft October 21, 2023 07:52
@CodyJasonBennett CodyJasonBennett changed the title fix(native): restore safety checks in loader polyfills fix(native): restore polyfill conversions, drop networking Oct 21, 2023
@CodyJasonBennett CodyJasonBennett marked this pull request as ready for review October 21, 2023 08:49
@CodyJasonBennett CodyJasonBennett merged commit 1e072d6 into master Oct 21, 2023
2 checks passed
@CodyJasonBennett CodyJasonBennett deleted the fix/restore-native-safety-conversions branch October 21, 2023 08:54
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.

useGLTF does not work on React Native React Native: load a GLB with embedded textures
1 participant