[React Native][RFC] Print __DEV__ value on app start

This commit is contained in:
Alex Kotliarskyi 2015-03-09 16:25:45 -07:00
parent 2640002d0e
commit b31fd38bb6

View File

@ -53,10 +53,12 @@ var AppRegistry = {
runApplication: function(appKey, appParameters) {
console.log(
'Running application "' + appKey + '" with appParams: ',
appParameters
'Running application "' + appKey + '" with appParams: ' +
JSON.stringify(appParameters) + '. ' +
'__DEV__ === ' + __DEV__ +
', development-level warning are ' + (__DEV__ ? 'ON' : 'OFF') +
', performance optimizations are ' + (__DEV__ ? 'OFF' : 'ON')
);
invariant(
runnables[appKey] && runnables[appKey].run,
'Application ' + appKey + ' has not been registered.'