React Native, by default, supports Chrome DevTools through its remote debugging ability, making it possible to have our favorite debugging technique, console.log.
Click here to see the full demo with network requests Using Chrome DevTools with React Native Here is a brief summary of what benefits we can leverage out of these tools. Apollo Client DevTools helps us inspect GraphQL queries, mutations, and cache. React Developer Tools allows you to check the props and state of a particular component, while Redux DevTool gives a complete picture of our store and, most importantly, our console logs are available with Chrome DevTools. It also allows developers to analyze the app’s behavior precisely. This offers an in-depth view of the app’s state, component tree, GraphQL query inspection, and UI elements in one window. To be honest, I miss this feature a lot while working with React web apps. This is a match made in heaven! This is where you can have a look at all aspects of your applications beside each other.Īll four tools offer helpful features, and bringing them together makes the development process smoother. RN Debugger is an electron-based app, with Chrome DevTools, Redux DevTool, React Developer Tools, and Apollo Client DevTools embedded together in one place. Also for apps using Redux, the Redux slider can be used to move in between actions and is also available from the touch bar. We can reload JavaScript, toggle elements, and network inspectors - all from the touch bar. For all the features we will discuss in this post, we have added relevant keyboard shortcuts for your ease.īesides keyboard shortcuts, it has super useful features accessible from the Macbook’s touch bar. The majority of keyboard shortcuts available in Chrome DevTools work here with React Native Debugger. React Native Debugger comes with a number of shortcuts to increase our productivity. Using keyboard shortcuts is a way to access features quickly. Many of us can agree that we like to avoid the mouse/trackpad while being focused on development or debugging. Keyboard & touch bar shortcuts in React Native Debugger Here are a few tricks for React Native debugging. On top of Redux DevTools, React Native Debugger comes with a set of features that can boost your development and debugging speed. The debugging experience of React Native goes a little beyond that. In another post, we discussed some cool tips about Redux DevTool that can help you debug your React apps faster.
It’s great to share the same design patterns and similar architecture while you’re developing across different platforms. React Native, React Unity, and React VR are a few of these renderers. One of the key benefits of React is the number of renderers available for this UI library.
React Native Debugger: Tips for fast debuggingĮditor’s Note: This post was updated in October 2021 to include Apollo Client DevTools and reflect current versions of React Native and React Native Debugger.
In love with mobile machine learning, React, React Native, and UI designing. Zain Sajjad Follow Head of Product Experience at Peekaboo Guru.