Debugging
Read React Native's documentation on Debugging
React Native Debugger
We suggest using React Native Debugger
Install and run RND, and then select 'Enable Remote JS Debugging' [⌘M (Android) / ⌘D (iOS)]
Network requests
Add this in your index.js:
// See network requests in React Native Debugger
if (__DEV__) {
GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest;
}
Redux Devtools
The setup is exactly the same as in web applications
