create-react-native-app: Expo stuck on loading my app

Description

After scanning the qrcode, Expo stuck on loading my app.

Expected Behavior

Expo should load my app.

Observed Behavior

Expo stuck in showing it’s loading icon, as shown below. Attention, the icon blinks all the time. image

  1. At the beginning, the problem does not exist. But later it comes, and I don’t know why.
  2. The phone and mac is in the same network, and the phone can visit the address : http://myId:19000, which is shown on the terminal. The phone also can visit the JS bundle File, such as : http://myIp:19001/node_modules/react-native-scripts/build/bin/crna-entry.bundle?platform=ios&dev=true&strict=false&minify=false&hot=false&assetPlugin=expo/tools/hashAssetFiles
  3. I have tried reinstall the Expo APP and restart the npm start, it doesn’t work.

Environment

  • npm ls react-native-scripts: @0.0.31
  • npm ls react-native: @0.44.3
  • npm ls expo: @17.0.0
  • node -v: v7.7.4
  • npm -v: v4.1.2
  • yarn --version: 0.20.3
  • watchman version: command not found

Also specify:

  1. Operating system: macOS Sierra 10.12.1
  2. Phone/emulator/simulator & version: Redmi Note 2, Android 5.0.2LRX22G

Reproducible Demo

The demo is here : https://github.com/youngwind/react-native-demo Any suggestion may help, thanks!

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

Had the same problem, and completely closing the expo app and reopening it again works for me.

Im having the same problem, I’ve cleared the cache, reinstalled the app…nothing. loads to 100% then just hangs there for about 5 minutes before crashing with no errors. Even stranger, my app was working fine with expo yesterday, and i haven’t changed any code.

I have the same issue

  1. I checked my code is not missing “return”

  2. They are on the same wifi network and it is not a public network. it is my private house wifi.

. It was working just two hours ago and since then it stuck in Building Javascript bundle [ ] 0% I tried to reload it sooo many times, I restarted my pc and mobile but nothing work! and I got no message just white page with expo logo in the center.

use return instead retun at line 7 @brentvatne