A VSCode extension that helps you debug and manage AsyncStorage in your React Native applications in real-time.
- 🔍 Real-time viewing of AsyncStorage contents
- ✏️ Edit storage values directly from VSCode
- 🔄 Auto-refresh when storage changes
- 🚀 Works with both iOS and Android
- 📱 Support for physical devices
- 💻 Simple and intuitive interface
- 🔌 Dynamic port configuration
- ❌ Fix delete items
- Install the extension from VSCode Marketplace
- Install the companion npm package in your React Native project:
npm install --save-dev rn-storage-debugger
-
In your React Native app, initialize the debugger:
import StorageDebugger from 'rn-storage-debugger'; if (__DEV__) { // Basic usage with default port (12380) StorageDebugger.start(); // Or specify a custom port StorageDebugger.start({ port: 8088 // Any available port }); }
-
In VSCode:
- Open Command Palette (Cmd/Ctrl + Shift + P)
- Type "RN: View Storage"
- Press Enter
-
Port Configuration:
- Default port is 12380
- Change port through the UI in the extension
- Automatic fallback to default port if selected port is in use
- VSCode 1.96.0 or higher
- React Native project with @react-native-async-storage/async-storage
This extension contributes the following settings:
-
rnStorageManager.port
: Port for WebSocket connection (default: 12380) - Port can be changed dynamically through the extension's UI
- Currently works only with development builds
- WebSocket connection might need a refresh if the Metro bundler is restarted
- Some ports might be unavailable if already in use by other development servers (e.g., 8081 for Metro)
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.