Moving __DEV__ to global namespace (#14916)

This commit is contained in:
Anurag Rao
2017-03-10 12:29:11 +05:30
committed by Mohamed Hegazy
parent 44449d5481
commit 3c07598678

View File

@@ -8323,11 +8323,11 @@ declare module "react" {
declare global {
const global: React.GlobalStatic;
function require(name: string): any;
}
/**
* This variable is set to true when react-native is running in Dev mode
* Typical usage:
* <code> if (__DEV__) console.log('Running in dev mode')</code>
*/
declare var __DEV__: boolean
/**
* This variable is set to true when react-native is running in Dev mode
* Typical usage:
* <code> if (__DEV__) console.log('Running in dev mode')</code>
*/
var __DEV__: boolean
}