How can I determine if my React Native app is a debug or release build from JavaScript code?
Solution 1:
if (__DEV__) {
console.log('I am in debug');
}
You can see this approach is being used in React Native repository.
if (__DEV__) {
console.log('I am in debug');
}
You can see this approach is being used in React Native repository.