I want to use some debug code in my app but I don't want this code to be in the release build. I'm using the following check for this:
if(__DEV__) {
this.setState({username: 'Niel', password: 'Test'});
}
If I generate my release build. Will the check still be in the build or will the dead code be removed? If not, is there a way to accomplish this?