File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -382,10 +382,17 @@ export const commands = {
382
382
let defaultConfig ;
383
383
384
384
if ( major >= 0 && minor >= 33 ) {
385
- defaultConfig = Config . get (
386
- path . resolve ( 'node_modules/react-native/local-cli' ) ,
387
- require ( path . resolve ( 'node_modules/react-native/local-cli/default.config' ) ) ,
388
- path . resolve ( 'node_modules/react-native/packager/rn-cli.config.js' ) ) ;
385
+ if ( minor >= 42 ) {
386
+ defaultConfig = Config . get (
387
+ path . resolve ( 'node_modules/react-native/local-cli' ) ,
388
+ require ( path . resolve ( 'node_modules/react-native/local-cli/core/default.config' ) ) ,
389
+ path . resolve ( 'node_modules/react-native/packager/rn-cli.config.js' ) ) ;
390
+ } else {
391
+ defaultConfig = Config . get (
392
+ path . resolve ( 'node_modules/react-native/local-cli' ) ,
393
+ require ( path . resolve ( 'node_modules/react-native/local-cli/default.config' ) ) ,
394
+ path . resolve ( 'node_modules/react-native/packager/rn-cli.config.js' ) ) ;
395
+ }
389
396
} else {
390
397
defaultConfig = Config . get ( path . resolve ( 'node_modules/react-native/local-cli' ) , require ( path . resolve ( 'node_modules/react-native/local-cli/default.config' ) ) ) ;
391
398
}
You can’t perform that action at this time.
0 commit comments