Videos
I'm about to start a new job and I'll be using React Native to develop mobile apps. Are companies actually using Expo for developing React Native apps? Like has it become a standard? Are there other ways like better alternatives to Expo? I've heard of React Native CLI, is it much better and standardized in the industry?
It sounds like you may have run expo prebuild (https://docs.expo.dev/workflow/prebuild/) which removes "main": "node_modules/expo/AppEntry.js", from app.json. Try to create a new expo app and look at it's app.json file.
When you run expo prebuild it changes a few things with your project (see "side effects" in the prebuild docs).
I'm actually working through some issues with that right now too. I thought I had to run prebuild but turns out I didn't have to. Ever since I ran it my app will not load via the dev-client way. I can however switch back to npx expo start (NOT npx expo start --dev-client, see the scripts section of app.json as that is also changed when prebuild is run).
Let me know if you are able to get your app to load after re-adding the main stuff to app.json.
Ps, are you by chance using react-native-google-mobile-ads?
Not sure if this is relevant anymore, but for me what worked was uninstalling expo-dev-client package.
Make sure you're connected to the same Wi-Fi network as your mobile device.
Sign in to the same Expo account on your computer and this app.
Check you have the latest version of Expo CLI.
Hope it helps!
try to open tunnel mode:
instead of expo startuse :
expo start --tunnel