Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for explicit, exclusive list of native modules for iOS RCTBridge implementation #353

Open
felixSchl opened this issue Jun 7, 2021 · 1 comment

Comments

@felixSchl
Copy link

Introduction

It appears currently impossible to create an RCTBridge instance that specifies an exclusive list of native modules to load. All native modules are registered program-wide via the accompanying macros and loaded every time, unconditionally. This is quite different from the Android implementation where we have total control over everything that gets loaded.

Details

The usecase is loading JS that should run in a restrictive, sandboxed environment with only a small subset of modules loaded which are carefully specified up front. Currently, on iOS, it is only possible to specific additional modules, but not the complete and exclusive list as far as I can tell.

Discussion points

  • Consistent API and behavior across platforms
  • Ability to sandbox JS on per-bridge instance
@kelset
Copy link
Member

kelset commented Jun 8, 2021

Maybe I'm misunderstanding, but isn't this something that the TurboModules approach fix by definition? #40

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

No branches or pull requests

2 participants