React Native Coach
Published in

React Native Coach

Debugging React Native and Redux with React Native Debugger

  • Your JavaScript code
  • Chrome DevTools
  • React DevTools
  • Redux DevTools

Installing React Developer Tools and Setting Up the Repo

  1. Clone the repository to your machine
  2. Run yarn install from the root of the project
  3. Install React Native Debugger
  4. Open React Native Debugger (close any other React Native Chrome DevTools debugging windows you have open)
  5. Run yarn ios to start the iOS simulator
React Native Debugger and iOS simulator
React Native Debugger and iOS simulator with breakpoint

Redux DevTools Configuration

  • window.__REDUX_DEVTOOLS_EXTENSION__
  • window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
  • window.__REDUX_DEVTOOLS_EXTENSION__.connect

Using Debugger Statements

// eslint-disable-next-line no-debugger
debugger;

Wrap Up

  • Know how to use React Native Debugger in your project
  • Be able to configure your project to use the Redux DevTools in React Native Debugger

--

--

Bringing you the best React Native, GraphQL, Redux, and Mobile Design resources from around the web. To submit stories for review or for inquiries about sponsorship: [email protected].

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store