react-native/packages
Mateo Guzmán c19fd11ccf fix(examples): fixing XMLHttpRequest file download example (#47152)
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
2024-10-29 11:18:34 -07:00
..
assets replace '$TEMPORARY$string<>' with 'string' (#46876) 2024-10-07 19:18:14 -07:00
babel-plugin-codegen RN: Fix lint/sort-imports Errors (#47109) 2024-10-18 04:07:02 -07:00
community-cli-plugin Update Metro to 0.81.0 (#47012) 2024-10-14 10:08:36 -07:00
core-cli-utils
debugger-frontend Update debugger-frontend from 117c96a...ff343d8 (#47178) 2024-10-23 11:31:12 -07:00
dev-middleware Drop appId from /open-debugger calls, disable matching for modern targets (#47120) 2024-10-18 11:02:51 -07:00
eslint-config-react-native Update hermes-parser and related packages in fbsource to 0.24.0 (#46802) 2024-10-03 08:20:16 -07:00
eslint-plugin-react-native Update hermes-parser and related packages in fbsource to 0.24.0 (#46802) 2024-10-03 08:20:16 -07:00
eslint-plugin-specs Update hermes-parser and related packages in fbsource to 0.24.0 (#46802) 2024-10-03 08:20:16 -07:00
gradle-plugin AGP to 8.7.1 (#47022) 2024-10-15 06:08:09 -07:00
helloworld Pin Xcodeproj to < 1.26.0 (#47237) 2024-10-28 04:20:31 -07:00
hermes-inspector-msggen
metro-config RN: Fix lint/sort-imports Errors (#47109) 2024-10-18 04:07:02 -07:00
normalize-color
polyfills Remove unused __inspectorLog (#47276) 2024-10-29 10:34:00 -07:00
react-native Move com/facebook/react/devsupport/AndroidManifest to Internal (#47279) 2024-10-29 10:25:46 -07:00
react-native-babel-preset Update hermes-parser and related packages in fbsource to 0.24.0 (#46802) 2024-10-03 08:20:16 -07:00
react-native-babel-transformer Update hermes-parser and related packages in fbsource to 0.24.0 (#46802) 2024-10-03 08:20:16 -07:00
react-native-bots fix: mitigate DangerJS transpilation bug (#47192) 2024-10-24 20:07:20 -07:00
react-native-codegen Add test for native module returning enum (#47229) 2024-10-28 12:03:33 -07:00
react-native-codegen-typescript-test
react-native-info
react-native-popup-menu-android Breaking: Remove BaseViewManagerInterface (#46809) 2024-10-09 14:49:01 -07:00
react-native-test-library Bump Kotlin 1.9.x to 2.0.x (#46955) 2024-10-11 05:34:02 -07:00
react-native-test-renderer Refactor Performance and PerformanceObserver internals (#46693) 2024-10-02 03:13:24 -07:00
rn-tester fix(examples): fixing XMLHttpRequest file download example (#47152) 2024-10-29 11:18:34 -07:00
typescript-config
virtualized-lists Add as const cast and make types readonly to prepare for natural inference (#47184) 2024-10-23 23:32:37 -07:00