React Native code hot load

2019-08-08 21:43发布

App store prohibits downloading remote code with the sole exception of WebKit + JS:

3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built-in WebKit framework, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.

Does this adhere to React Native? Can I host my React Native script bundle on a CDN server and fix bugs by replacing my JS implementation?

See: https://facebook.github.io/react-native/docs/embedded-app.html#add-rctrootview-to-container-view

1条回答
爷的心禁止访问
2楼-- · 2019-08-08 22:33

Yes, you are allowed to hot load JS into your iOS app. This is one of the big advantages of React Native.

查看更多
登录 后发表回答