The Redux DevTools plugin integrates Redux DevTools directly into your React Native DevTools, providing powerful state inspection and debugging capabilities for your Redux-powered React Native applications.
Redux DevTools is a powerful debugging tool for Redux applications that provides:
Time travel debugging and action dispatch features will be added in future releases. These features require additional development to work properly in the remote DevTools environment.
Install the Redux DevTools plugin and its peer dependencies as development dependencies:
Important: After installing react-native-get-random-values
, you need to import it at the very top of your entry file (usually index.js
or App.js
):
For more detailed setup instructions, please refer to the react-native-get-random-values documentation.
Add the Redux DevTools enhancer to your Redux store:
Wrap your Metro configuration with withRozeniteReduxDevTools
:
This setup enables the WebSocket relay that allows the Redux DevTools to communicate with your React Native app.
Once configured, the Redux DevTools plugin will automatically appear in your React Native DevTools sidebar as "Redux DevTools".
The Redux DevTools plugin currently displays Redux stores from all connected devices at once. When multiple devices are connected, be sure to select the correct store in the instance selector to inspect the Redux store for the specific device.
The Redux DevTools plugin is open source and welcomes contributions! Check out the Plugin Development Guide to learn how to contribute or create your own plugins.
If you encounter issues with the Redux DevTools plugin:
Next: Learn about Plugin Development to create your own plugins, or explore other Official Plugins.