expo: Expo client crashes with error t.preventAutoHide

🐛 Bug Report

Summary of Issue

Cannot open Expo Client either from a project or just from iOS simulator (without a specific project)

Environment - output of expo diagnostics & the platform(s) you’re targeting

Expo CLI 3.24.2 environment info: System: OS: macOS 10.15.6 Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node Yarn: 1.21.1 - ~/.nvm/versions/node/v12.13.1/bin/yarn npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm Watchman: 4.7.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.5 AI-191.8026.42.35.5977832 Xcode: 11.4.1/11E503a - /usr/bin/xcodebuild npmPackages: expo: ~38.0.8 => 38.0.9 react: ~16.11.0 => 16.11.0 react-dom: ~16.11.0 => 16.11.0 react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2 react-native-web: ~0.11.7 => 0.11.7 npmGlobalPackages: expo-cli: 3.24.2

Reproducible Demo

There was a problem running expo Unhandled JS Exception: TypeError: null is not an object (evaluating _t.preventAutoHide)

Steps to Reproduce

expo init testProject yarn start open project in iOS simulator (iPhone 11 13.4.1)

Expected Behavior vs Actual Behavior

I should be able open the app and retrieve a list of my projects

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 9
  • Comments: 25 (11 by maintainers)

Most upvoted comments

thanks for your patience. it looks like what happened was that a new simulator build was uploaded via our ci service using the same version name so it overwrote the previous one, so anyone who had downloaded it before was fine but new downloads would break.

👇 to resolve this issue 👇

  • stop expo-cli
  • run expo client:install:ios
  • it should prompt to install 2.16.1
  • say yes
  • try loading your project
  • if that doesn’t work, stop expo-cli and clear ~/.expo (rm -rf ~/.expo will do the trick)
  • try loading your project again

Thanks @brentvatne! It works.

can you try uninstalling and reinstalling it?

I did multiple times, no luck though.

so, to clarify, you uninstall the app on your device, then go to the store and reinstall it, and then when you open it you see the error screenshotted in the original post?

I used iOS simulator. I deleted the app, re-installed it, and when I opened it I saw that error. I tried to reset the simulator too, but same error occurred.

I have the same issue on iOS simulator. When I click multiple times on “Run iOS Simulator” it eventually opens. It’s not a fix, but a way to ‘workaround’ it.