Ate*_*tef 8 javascript compilation react-native code-push
I need to create a mobile app that contains other apps and can run them. It is basically like an "app center" which have a list of apps (that we publish on our server) and the user can open one of them which lead to the app being opened.
Think about Expo's app, the user can scan the QR code of his app and it will be automatically compiled and opened, this is close to the feature I want.
The apps that can be opened are created using react-native and stored inside GIT repositories in Gitlab.
Consider the following example:
By launching the app, which we call App Center, a list of apps will be shown. When the user click on one of them, it will be opened internally.
Here's a "more technical" example:
So according to you which is the best approach I should consider.
Should I use a remote code solution such as CodePush or react-native-dynamic-bundle ? Do they fit in this context ?
这可以部分通过 CodePush 实现:
\n然而,警告可能会破坏交易:
\n还有一个更好的方法:
\n[{app:"A1", version: 2.0.0}, {app: "A2", version: 1.2.0}]每当中央配置发生更改时(例如,在 A1 发布 npm 包后,他们更新中央配置),就会重复此操作。
\n它解决了重新启动的问题,因为您已将所有捆绑包构建到一个捆绑包中。
\nCodePush:\n https://learn.microsoft.com/en-us/appcenter/distribution/codepush/react-native#dynamic-deployment-assignment
\n或者您可能想要查看expo的代码https://github.com/expo/expo/blob/d56076241cef55b0a93a5c0bb8dc690270e42dcb/home/screens/QRCodeScreen.android.js#L89
\n