简体   繁体   中英

How to determine DevMode in React-Native in Native Android Component?

有没有类似的方法来检查我是否处于像在Objective-C中那样的调试模式?

#ifdef DEBUG // ... #else // ... #endif

您可以测试应用程序是否在开发模式下运行:

if(__DEV__) { // do something... }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM