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?
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With