pstanton
pstanton

Reputation: 36640

Detect if running a debug or release build at runtime

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

Upvotes: 6

Views: 2541

Answers (1)

Victor
Victor

Reputation: 4199

Use DEV flag

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

Upvotes: 9

Related Questions