Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Debugging in Expo For React Native App

So I've opened up my react-native app in Expo today (using the iOS simulator) and I am creating by what looks like a debugging overlay.

Screenshot here: enter image description here

I don't need this and it's blocking some of the UI for testing.

How does one turn it off?

like image 772
Jack Robson Avatar asked Aug 10 '17 13:08

Jack Robson


People also ask

How do you debug Expo React Native app?

Download React Native Debugger from the releases page. Open the app, press Cmd ⌘ + T or Ctrl + T to open a new window, then set the port to 19000. Start your app, open the in-app developer menu, and select “Debug JS Remotely.”

How do I enable remote debugging in React Native?

Debugging React Native AppsPress Command + D and a webpage should open up at http://localhost:8081/debugger-ui. (Chrome only for now) or use the Shake Gesture. Enable Pause On Caught Exceptions for a better debugging experience.

How do I debug React Native on a device?

Debugging on a device with Chrome Developer Tools If you're using Create React Native App or Expo CLI, this is configured for you already. On iOS devices, open the file RCTWebSocketExecutor.m and change "localhost" to the IP address of your computer, then select "Debug JS Remotely" from the Developer Menu.

How do I debug my React components in Expo Go?

This will open up the React DevTools console (for it to connect, you need to select Debug remote JS from the Developer Menu in the Expo Go app). From this console, you can search for your React components at the top, or open up the Developer Menu and enable the Element Inspector.

How do I debug an expo app?

You can debug Expo apps using the Chrome debugger tools. Rather than running your app's JavaScript on your phone, it will instead run it inside of a webworker in Chrome. You can then set breakpoints, inspect variables, execute code, etc, as you would when debugging a web app.

How do I debug React components in chrome?

When debugging JavaScript in Chrome, you can inspect the props and state of the React components in the browser console. First, follow the instructions for debugging in Chrome to open the Chrome console. Make sure that the dropdown in the top left corner of the Chrome console says debuggerWorker.js. This step is essential.


1 Answers

You have the Element Inspector open. To toggle it off do either:

  • ⌘+D if you are in the simulator
  • Shake your phone if you are on an actual device

This should open up the debugging menu. You can then click on Toggle Element Inspector to close it.

Expo Debugging Menu

like image 164
Michael Cheng Avatar answered Oct 19 '22 17:10

Michael Cheng