You can debug Redux in React Native apps with help of the React Native Debugger tool: https://github.com/jhen0409/react-native-debugger/blob/master/docs/redux-devtools-integration.md
-
Make sure you got the React Native Debugger installed (https://github.com/jhen0409/react-native-debugger)
-
Enable JS Debugging in the running app (open development overlay via CTRL + M / CMD + M on Android devices, CMD + D on iOS devices)
-
Install the redux-devtools-extension package via npm install --save-dev redux-devtools-extension (https://www.npmjs.com/package/redux-devtools-extension)
-
Enable Redux debugging in your code:
import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension';
const store = createStore(reducer, composeWithDevTools()); Important: Make sure you remove this code when building your app for production!