microsoft / microsoft/react-native-windows
Implement HTTP progress event
Open
@JunielKatarn is already working on this.
Since Nov 8, 2022.
Area: Networking
enhancement
Workstream: Component Parity
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
See https://github.com/facebook/react-native/blob/v0.70.5/Libraries/Network/RCTNetworking.mm#L195 :
return @[@"didCompleteNetworkResponse",
@"didReceiveNetworkResponse",
@"didSendNetworkData",
@"didReceiveNetworkIncrementalData",
@"didReceiveNetworkDataProgress",
@"didReceiveNetworkData"];
Events didReceiveNetworkDataProgress and didReceiveNetworkIncrementalData are not triggered/handled by React Native Windows' HTTP module.
This prevents showing HTTP download progress in UI or acknowledging incremental data download steps.
Steps to reproduce
- Start the Playground app.
Set-Location packages\playground yarn windows --sln windows\playground.sln - Load the default bundle
Samples\rntester. - Open the XMLHttpRequest component.
- On the
File Downloadsection, click on theDownload 7MB text filebutton.
Expected result
Progress and total size are displayed in the corresponding text label:

Actual result
The progress indicator stays at 0.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.