Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable opening DevTools in the browser when running expo start?

Tags:

When I run expo start (expo cli 2.6.14) in my react native project, it always opens a browser window with the DevTools. It's a nice feature, but sometimes I'd rather not have that happen.

It says in the console:

Opening DevTools in the browser... (press shift-d to disable) 
But pressing shift + d just types out capital D. So I don't get why it says that. Maybe it's because I'm on a Mac, but I've tried shift/ctrl/alt/cmd + d and none of those do anything regarding disabling opening the window.

Am I missing something here?

like image 834
Zaytri Avatar asked Jan 09 '19 00:01

Zaytri


People also ask

How do I stop dev tools React Native from launching?

In menu of the device press 'Stop Debugging'. In my case (Android, Samsung phone), it's 2nd point, the 1st is 'Reload'. If debug is stopped all console.

How do I open the Expo dev tools in Chrome?

Open the app on your device, reveal the developer menu then tap on Debug JS Remotely . This should open up a Chrome tab with the URL http://localhost:19000/debugger-ui . From there, you can set breakpoints and interact through the JavaScript console.

What is production mode in Expo?

Production mode minifies your code and better represents the performance your app will have on end users' devices. Development mode includes useful warnings and gives you access to tools that make development and debugging easier.

Is Expo Better than React Native?

Expo expands the API surface of React Native React Native does not give you all the JavaScript APIs you need out of the box, but only most primitive features. React Native developers are expected to use Android Studio or Xcode to link additional native libraries.


1 Answers

I figured it out, once the bundler is actually up and running, then you can use shift + d as one of the commands, as well as press d to open DevTools manually.

It's odd that it tells you to use the command before you're actually able to use it.

like image 55
Zaytri Avatar answered Sep 19 '22 06:09

Zaytri