react-native - __DEV__ 是否在生产中定义?

标签 react-native

我有一个 React Native 应用程序,它只在生产环境中崩溃(不是本地),我想是因为 __DEV____DEV__ 是否在生产中定义?

最佳答案

我自己做了一些调查后,__DEV__ 在 iOS 或 Android 模拟器上运行时设置为 true

关于react-native - __DEV__ 是否在生产中定义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35421992/

相关文章:

javascript - React Native Animated undefined 不是一个对象(评估 'u.stopTracking' )

javascript - react native 。应用程序的关闭事件

react-native - 更新到 Xcode 11.0 后对 native 崩溃使用react

react-native - 在 React Native 中使用 apollo-upload-client 上传图片

ios - react-native-intercom 抛出神秘错误 - 体系结构 x86_64 的 undefined symbol

javascript - 如何将数据从React组件传递到node server.js?

javascript - 从组件外部更改状态

javascript - 流、类型解构对象

javascript - 在 Chrome 中使用 React Native 调试 ES6 import 语句

reactjs - 即使我们只需要渲染一个组件,所有组件都会被渲染,在react-redux中