how to identify debug and release build in react native

JavaScript
if (__DEV__) {
    console.log('I am in debug');
}

Source

Also in JavaScript: