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

How to access a Turbo Module from a Fabric Component? #4347

Open
gastonmorixe opened this issue Nov 10, 2024 · 0 comments
Open

How to access a Turbo Module from a Fabric Component? #4347

gastonmorixe opened this issue Nov 10, 2024 · 0 comments

Comments

@gastonmorixe
Copy link

gastonmorixe commented Nov 10, 2024

Without retro-compatibility, in the new architecture, how can I access a Turbo Module from a Fabric Component?

In iOS before I was able to do:

  RTNTWVideoModule *videoModule = [[RCTBridge currentBridge] moduleForName:@"RTNTWVideoModule"];

Now that the new architecture has no bridge I would like to know if there's another way and better way to do this.

That still works in but would like to know if this is still the official way to do it. Would like to avoid RCTBridge since in the new arch it should be no bridge.

I see the current bridge is a proxy bridge, and the turbo modules are managed by RCTTurboModuleManager but couldn't find a way to access it from a fabric component without RCTBridge.

Thank you

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

1 participant