Skip to content

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

Open
javache wants to merge 2 commits into
react:mainfrom
javache:export-D132267695
Open

javache wants to merge 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

This branch has not been deployed

No deployments
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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant