-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window.__DEV__ is false on debug build on RN version 0.75.4 #823
Comments
I'm unsure about why you're using You should be fine with just: if (__DEV__) {
console.log('I am in debug');
} |
@cortinico I tried using the above code but still it gives me false on debug build leading to PRODUCTION = true on debug build based on the below code
|
@cortinico I want to keep this DEV true disabling all developer option for debug build |
You'll have to provide a reproducer using https://github.com/react-native-community/reproducer-react-native as we can't help you further otherwise |
@sahad00 You mentioned that you are using this command:
It specifies |
True. @sahad00 why are you using a custom bundle command and not the default toolchain? |
|
@cortinico its something like release build on debug configs , we usually have it to be tested |
|
this is not working properly when I install on device but setting it manually to true works |
I tried logging with add logcat but the value is cool I am not sure why its buggy |
Without a reproducer we can't help further |
@cortinico will make one |
Introduction
Earlier I used to detect the env based like this
problem is that isProduction is true on debug build I have generated
build command used
Details
app/build.gradle
I am unable to figure out the issue please help
gradle.properties
The text was updated successfully, but these errors were encountered: