Skip to content

fix(ios): remove brownie and react brownfield exported directives#240

Merged
hurali97 merged 2 commits intomainfrom
fix/ios/remove-brownie-export
Feb 23, 2026
Merged

fix(ios): remove brownie and react brownfield exported directives#240
hurali97 merged 2 commits intomainfrom
fix/ios/remove-brownie-export

Conversation

@hurali97
Copy link
Copy Markdown
Member

Summary

This PR removes the need to re-export the Brownie and ReactBrownfield modules as they are already linked to the host App after the framework generation. This also fixes the bug where the user does not want to install Brownie, without this PR, they will have to install Brownie even if they don't use it.

Test plan

CI Passes - 🟢

Copilot AI review requested due to automatic review settings February 23, 2026 06:39
Copy link
Copy Markdown
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 removes the @_exported import directives for Brownie and ReactBrownfield modules from the iOS framework interface template. The generated framework will now only provide the ReactNativeBundle symbol, while users must explicitly import ReactBrownfield and Brownie if they need features from those modules. This change fixes a dependency issue where users were forced to install Brownie even when not using it, and makes dependencies more explicit and opt-in.

Changes:

  • Removed @_exported import ReactBrownfield and @_exported import Brownie from the framework interface template
  • Added import Foundation for the Bundle class and changed to regular import ReactBrownfield for the extension

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hurali97 hurali97 merged commit f486ddb into main Feb 23, 2026
12 of 13 checks passed
@hurali97 hurali97 deleted the fix/ios/remove-brownie-export branch February 23, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants