When running expo ios, the default connection type is LAN. Via app.json, metro.config.js, or .env, how does one configure type tunnel to be the default?
When running expo ios, the default connection type is LAN. Via app.json, metro.config.js, or .env, how does one configure type tunnel to be the default?
It's been a while since you asked this question so I assume you have already figure out the answer. You need to change the "start" script in package.json to "expo start --tunnel".
"scripts": {
"start": "expo start --tunnel",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
Btw, on July 25th, the Expo team announced "Sunsetting the Web UI for Expo CLI".
So, only the commands typed in the terminal stand:
"start": "expo start --tunnel",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
or writing them in the package.jason --> scripts, as @porkupan suggested.