DEV Community

skptricks
skptricks

Posted on

Debug React Native Android or iOS App Using Console log

Post link : Debug React Native Android or iOS App Using Console log

This tutorial explains how to perform debugging using console.log() in react native application. Console.log() is a inbuilt and predefined function present in javascript. This function is created for both Android and iOS applications and used to maintain and debug errors in apps on run time. Console.log() helps us to detect errors in our code.

In this example we are using console.log statement inside the function and that function mapped to the button as a click listener. When user perform click event on the button, then it will print console.log statement message in the console. Lets use the below complete source code for logging a message in console, that ultimately help you to debug the code.

Top comments (0)