@@ -62,48 +62,21 @@ publish it there. See this StackOverflow question for more information:
62
62
// update app.json file with new contents
63
63
await fse . writeFile ( appJsonPath , JSON . stringify ( appJson , null , 2 ) ) ;
64
64
65
- await Detach . detachAsync ( process . cwd ( ) ) ;
66
- // yesno lib doesn't properly shut down. without this the command won't exit
67
- process . stdin . pause ( ) ;
68
-
69
65
const pkgJson = JSON . parse ( ( await fse . readFile ( path . resolve ( 'package.json' ) ) ) . toString ( ) ) ;
70
-
71
66
pkgJson . main = 'node_modules/expo/AppEntry.js' ;
72
-
73
67
delete pkgJson . devDependencies [ 'react-native-scripts' ] ;
74
68
delete pkgJson . scripts . start ;
75
69
delete pkgJson . scripts . build ;
76
70
delete pkgJson . scripts . eject ;
77
71
delete pkgJson . scripts . android ;
78
72
delete pkgJson . scripts . ios ;
79
-
80
- const versions = await Versions . versionsAsync ( ) ;
81
- const sdkTag = versions . sdkVersions [ appJson . expo . sdkVersion ] . expoReactNativeTag ;
82
-
83
73
await fse . writeFile ( 'package.json' , JSON . stringify ( pkgJson , null , 2 ) ) ;
84
74
85
- console . log ( 'Installing the Expo fork of react-native...' ) ;
86
- const reactNativeVersion = `https://github.com/expo/react-native/archive/${ sdkTag } .tar.gz` ;
87
- const {
88
- code,
89
- } = await install ( process . cwd ( ) , 'react-native' , reactNativeVersion , {
90
- silent : true ,
91
- } ) ;
92
-
93
- if ( code === 0 ) {
94
- console . log ( `${ chalk . green ( 'Successfully set up ExpoKit!' ) } ` ) ;
95
- } else {
96
- console . warn (
97
- `
98
- ${ chalk . yellow ( 'Unable to install the Expo fork of react-native.' ) }
99
- ${ chalk . yellow ( `Please install react-native@${ reactNativeVersion } before continuing.` ) }
100
- `
101
- ) ;
102
- }
75
+ await Detach . detachAsync ( process . cwd ( ) ) ;
103
76
104
77
console . log (
105
78
`
106
- You'll need to use Expo's XDE to run this project:
79
+ You'll need to use Expo's XDE or exp to run this project:
107
80
${ chalk . cyan ( 'https://docs.expo.io/versions/latest/introduction/installation.html' ) }
108
81
109
82
For further instructions, please read ExpoKit's build documentation:
0 commit comments