在启动屏幕之后,但在加载应用程序之前,屏幕顶部会出现一条“从预捆绑文件加载”消息,仅显示几百毫秒。我在开发中不介意这个,但我在手机上运行时仍然看到这条消息。这是我创建捆绑包的方式。有任何想法吗?谢谢。
react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output App/main.jsbundle --resetCache
最佳答案
更改构建配置以发布
致 disable the developer menu因此,您提到的消息,您应该更改您的 Build Configuration
至 Release
.
For iOS open your project in Xcode and select Product → Scheme → Edit Scheme... (or press ⌘ + <). Next, select Run from the menu on the left and change the Build Configuration to Release.
关于react-native - 如何摆脱 "Loading from pre-bundled file"消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34425148/