for native module in mini app #839
Answered
by
jbroma
HongQuang231
asked this question in
Q&A
|
can I create a native module for the mini app and when I run the host app and mini app then the native module in the mini app can work? |
Answered by
jbroma
Dec 26, 2024
Replies: 1 comment
|
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 |
0 replies
Answer selected by
HongQuang231
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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