Skip to content

Preferred way of dealing with both architectures #50

Answered by cipolleschi
mateioprea asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mateioprea, thanks for your question.

We created some examples to help handling both architectures at the same time: this repo contains a branch with TurboModules and Fabric Components that can work on both architectures.

At the moment, we still have to use the RCT_EXPORT_METHOD macros to export a function from a TurboModule. The RCT_REMAP_METHOD is just the same as the RCT_EXPORT_METHOD: additionally, it allows you to rename the method.

For your specific question, I see two alternatives:

  1. If you want to keep the same API, you have to stay asynchronous, also with the TurboModule. It is still a smaller overhead than w.r.t the Old Architecture, because TurboModules use JSI and they don'…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants