Detect if running a debug or release build at runtime

Viewed 1703

Is there a way to determine if the current running react-native app was a debug build? Specifically for android, but hopefully platform agnostic.

1 Answers

Use DEV flag

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