当应用程序从移动设备启动时,从服务器动态下载 .js(所有组件)文件
Dynamically download the .js(All components) files from server when app starts from the mobile device
要求,
我们将在 Web 服务器中拥有内容(Components.Js 文件、图像等资产)。
当我的应用程序从移动设备启动时,apk in 将请求从我的网络服务器下载文件并开始加载应用程序。
这样我的 apk 将只保留 App.Js 并请求 url 以从服务器获取所有组件。
在 React Native 中可以吗?或者有什么办法可以实现吗?
我猜你正在寻找类似 codepush 的东西
https://github.com/Microsoft/react-native-code-push
在不通过 play/app store
发布新更新的情况下更新代码 OTA
要求, 我们将在 Web 服务器中拥有内容(Components.Js 文件、图像等资产)。 当我的应用程序从移动设备启动时,apk in 将请求从我的网络服务器下载文件并开始加载应用程序。
这样我的 apk 将只保留 App.Js 并请求 url 以从服务器获取所有组件。
在 React Native 中可以吗?或者有什么办法可以实现吗?
我猜你正在寻找类似 codepush 的东西 https://github.com/Microsoft/react-native-code-push 在不通过 play/app store
发布新更新的情况下更新代码 OTA