Skip to content

Commit 6559600

Browse files
committed
Include whether dev or production is enabled in "Running app on" message
1 parent 549dbe8 commit 6559600

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

react-native-scripts/src/util/packager.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ function run(onReady: () => ?any, options: Object = {}, isInteractive = false) {
7878
// this is set when we previously encountered an error
7979
// TODO clearConsole();
8080
}
81-
log.withTimestamp(`Running app on ${chunk.deviceName}\n`);
81+
let devEnabled = chunk.msg.includes('__DEV__ === true');
82+
log.withTimestamp(
83+
`Running app on ${chunk.deviceName} in ${devEnabled ? 'development' : 'production'} mode\n`
84+
);
8285
return;
8386
}
8487

0 commit comments

Comments
 (0)