mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c19fd11ccf
Summary: The `XMLHttpRequest` example with a single file download doesn't seem to be working anymore. The test case is quite old so it seems like something changed in between with the example URLs. - Changing the URL for the example. Using another file from `filesamples.com` as it's already being used in the chunk file download example as well. - Adding an `onerror` callback as it was loading infinitely when something went wrong. ## Changelog: [INTERNAL] [FIXED] - fixing `XMLHttpRequest` file download example Pull Request resolved: https://github.com/facebook/react-native/pull/47152 Test Plan: Using the `rn-tester`, see the before and after for comparison <details> <summary>Before and after videos</summary> **Before**: https://github.com/user-attachments/assets/01f89cd9-0f5e-4ddb-9ff2-c3e053be5413 **After**: https://github.com/user-attachments/assets/59ef161c-d5ba-43e3-827e-e250cc663276 </details> Reviewed By: cipolleschi Differential Revision: D65126952 Pulled By: NickGerleman fbshipit-source-id: 7a4b2187570fd85d4444bfe63ae7bc77b09af261