In the world of React Native development, a single debugging tip can make all the difference. Join us as we uncover a valuable insight to streamline your debugging process. This tip will save you time and ensure your apps run smoothly. Let's dive right in!
So run your application using the React Native CLI and attach the native debugger of the native IDE (Android Studio or Xcode) to the process.
On Android Studio you can do this by going on the "Run" option on the menu bar, clicking on "Attach to Process..." and selecting the running React Native app.
On Xcode click on "Debug" on the top menu bar, select the "Attach to process" option, and select the application in the list of "Likely Targets".
Now you can put breaking points in your native code and tada 🥳!
I added these instructions in the React Native official docs too you can check the PR status here.
Follow-me for more content about React Native.