Skip to content

Conversation

@kraenhansen
Copy link
Collaborator

Merging this PR will:

  • Refactor the patching the JSI headers into a separate function.

Resulting from a need to call this more than once, which went away - but I'd like to hang onto this refactor to keep things more aligned with the semantics 👍

@kraenhansen kraenhansen requested a review from Copilot November 2, 2025 13:05
@kraenhansen kraenhansen self-assigned this Nov 2, 2025
@kraenhansen kraenhansen added Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) Host 🏡 Our `react-native-node-api-modules` package labels Nov 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the JSI header patching logic in the Hermes vendoring command by extracting it into a dedicated function. The change improves code organization and makes the patching logic reusable, even though the immediate need for multiple calls has been resolved.

Key changes:

  • Extracted JSI header copying logic into a new patchJsiHeaders() function
  • Introduced PatchJSIHeadersOptions type for type-safe parameter passing

@kraenhansen kraenhansen merged commit 2c54ae3 into main Nov 2, 2025
7 checks passed
@kraenhansen kraenhansen deleted the kh/refactor-copying-jsi-headers branch November 2, 2025 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Apple 🍎 Anything related to the Apple platform (iOS, macOS, Cocoapods, Xcode, XCFrameworks, etc.) Host 🏡 Our `react-native-node-api-modules` package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants