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"
},
I was having the same issue and I tried to change my scripts to:
{
"scripts": {
"start": "expo start --tunnel",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
}
}
But it didn't work. I then had to run the command directly:
npx expo start --tunnel
Then everything worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With