react-native - 如何摆脱 "Loading from pre-bundled file"消息?

标签 react-native

在启动屏幕之后,但在加载应用程序之前,屏幕顶部会出现一条“从预捆绑文件加载”消息,仅显示几百毫秒。我在开发中不介意这个,但我在手机上运行时仍然看到这条消息。这是我创建捆绑包的方式。有任何想法吗?谢谢。

react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output App/main.jsbundle --resetCache

最佳答案

更改构建配置以发布

disable the developer menu因此,您提到的消息,您应该更改您的 Build ConfigurationRelease .

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/

相关文章:

javascript - React-native- 如果数组为空,则有条件地禁用 TouchableHighlight

javascript - 如何使用非字符串引用而不导致流程错误

android - WP REST API 和 React Native : how to show content not in HTML

javascript - React Native 中未定义不是对象 '_this3.props.navigation()' 错误

react-native-git-upgrade 错误 : Cannot find module 'AccessibilityInfo'

react-native - 如何加载具有不同参数的相同屏幕?

ios - 如何获取react-native中的绝对图像路径?

javascript - 如何将字符串转换为小写? .toLowerCase() 无法正常工作

css - flex 容器的子容器超过父容器

react-native - 如何在 React-Navigation 中更改标题文本和标签文本?