mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 07:35:25 +00:00
[React Native][RFC] Print __DEV__ value on app start
This commit is contained in:
parent
2640002d0e
commit
b31fd38bb6
@ -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.'
|
||||
|
Loading…
x
Reference in New Issue
Block a user