Skip to content

for native module in mini app #839

Answered by jbroma
HongQuang231 asked this question in Q&A
Discussion options

You must be logged in to vote

only JS part of the miniapp can be federated.

If you want to include native code from the the mini-app I'd suggest creating a separate lib with the native module and including it in both host-app and mini-app as a dependency

including it in host-app enables you to use the module by the mini-app in the federated configuration.

including it in mini-app allows for development and actual use in the federated configuration.

please remember to mark that lib with native module as a shared in the MF config

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HongQuang231
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