Skip to content

OSS portable C++ Blob and FileReader modules (#60043) - #60043

Merged
meta-codesync[bot] merged 2 commits into
react:mainfrom
javache:export-D132267695
Nov 18, 2026
Merged

meta-codesync[bot] merged 2 commits into
react:mainfrom
javache:export-D132267695

Conversation

@javache

@javache javache commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Relocate the existing C++ Blob, blob storage and FileReader implementations and their per-module tests into ReactCxxPlatform/react/io. Add standard licence headers and document registration and supported behaviour. No module behaviour changes in this relocation.

Changelog: [General][Added] - Make portable C++ Blob and FileReader modules available in ReactCxxPlatform

Differential Revision: D132267695

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 16, 2026
@meta-codesync

meta-codesync Bot commented Nov 16, 2026

Copy link
Copy Markdown

@javache has exported this pull request. If you are a Meta employee, you can view the originating Diff in D132267695.

@meta-codesync meta-codesync Bot changed the title Add portable C++ Blob and FileReader modules OSS portable C++ Blob and FileReader modules Nov 16, 2026
@meta-codesync meta-codesync Bot changed the title OSS portable C++ Blob and FileReader modules OSS portable C++ Blob and FileReader modules (#60043) Nov 16, 2026
javache added a commit to javache/react-native that referenced this pull request Nov 16, 2026
Summary:
Pull Request resolved: react#60043

Relocate the existing C++ Blob, blob storage and FileReader implementations and their per-module tests into `ReactCxxPlatform/react/io`. Add standard licence headers and document registration and supported behaviour. No module behaviour changes in this relocation.

Changelog: [General][Added] - Make portable C++ Blob and FileReader modules available in ReactCxxPlatform

Differential Revision: D132267695
Summary:
Pull Request resolved: react#60023

Add an optional `INetworkingResponseHandler` to the C++ `NetworkingModule`. Hosts can convert supported response types, such as blob responses, into their native JavaScript representation. The existing string/base64 response path remains unchanged when no handler is registered or the handler does not support the response type.

Networking copies the complete `IOBuf` chain directly into an owned `std::vector<uint8_t>` and moves it to the response handler on the JavaScript thread. The interface carries undecoded bytes rather than a string, avoiding a string-to-vector conversion.

Changelog: [Internal]

Differential Revision: D132255841
Summary:
Pull Request resolved: react#60043

Relocate the existing C++ Blob, blob storage and FileReader implementations and their per-module tests into `ReactCxxPlatform/react/io`. Add standard licence headers and document registration and supported behaviour. No module behaviour changes in this relocation.

Changelog: [General][Added] - Make portable C++ Blob and FileReader modules available in ReactCxxPlatform

Differential Revision: D132267695
@meta-codesync
meta-codesync Bot merged commit 0091ea6 into react:main Nov 18, 2026
90 of 91 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @javache in 0091ea6

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 18, 2026
@javache
javache deleted the export-D132267695 branch November 18, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants