[英]Determine in code if app runs in Expo Go or not (in production build)
I would like to determine in react native code if the app is running in Expo Go or as a stand-alone iOS/Android app.我想在本机代码中确定应用程序是在 Expo Go 中运行还是作为独立的 iOS/Android 应用程序运行。
I can't use __DEV__
, because I would like to be able to determine this also for a production build.我不能使用
__DEV__
,因为我希望能够为生产构建确定这一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.