File tree Expand file tree Collapse file tree
private-cli/src/runAndroid Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,13 +132,17 @@ function startServerInNewWindow() {
132132 [ '-e' , 'sh' , launchPackagerScript ] ,
133133 { detached : true }
134134 ) ;
135+ } else if ( / ^ w i n / . test ( process . platform ) ) {
136+ console . log ( chalk . yellow ( 'Starting the packager in a new window ' +
137+ 'is not supported on Windows yet.\nPlease start it manually using ' +
138+ '\'react-native start\'.' ) ) ;
139+ console . log ( 'We believe the best Windows ' +
140+ 'support will come from a community of people\nusing React Native on ' +
141+ 'Windows on a daily basis.\n' +
142+ 'Would you be up for sending a pull request?' ) ;
135143 } else {
136- console . error ( chalk . yellow (
137- 'Starting packager in new window is not supported on Windows yet. ' +
138- 'See https://github.com/facebook/react-native/issues/3469 on how to ' +
139- 'start it manually.'
140- ) ) ;
141- throw new Error ( 'Windows is not yet supported' ) ;
144+ console . log ( chalk . red ( 'Cannot start the packager. Unknown platform ' +
145+ process . platform ) ) ;
142146 }
143147}
144148
You can’t perform that action at this time.
0 commit comments