File System Plugin
The File System plugin provides an in-app file explorer for React Native DevTools, so you can inspect app directories and preview text or image files directly from the DevTools UI.
What is File System Plugin?
The File System plugin helps you browse the files your app can access at runtime. It provides:
- Directory Browsing: Inspect document, cache, temporary, library, and bundle directories
- Provider Support: Works with Expo FileSystem and RNFS-compatible libraries
- Text Preview: Open text files directly in DevTools
- Image Preview: Preview image files inline
- Binary Fallback Preview: Show a hex-style dump when a file cannot be decoded as text
- Path Navigation: Jump between roots, navigate nested folders, and move back through history
Installation
Make sure to go through the Getting Started guide before installing the plugin.
Install the File System plugin:
Install one supported filesystem provider in your app:
Usage
With Expo FileSystem
With RNFS
Once configured, the plugin appears in React Native DevTools as "File System".
Available Roots
Expo FileSystem
When available, the plugin exposes these roots:
documentDirectorycacheDirectorybundleDirectory
RNFS
When available, the plugin exposes these roots:
DocumentDirectoryPathCachesDirectoryPathTemporaryDirectoryPathLibraryDirectoryPathMainBundlePath
Notes
The plugin does not auto-detect a filesystem library. You must pass either { expoFileSystem: FileSystem } or { rnfs: RNFS } to useFileSystemDevTools().
File previews are size-limited to keep DevTools responsive. Very large files may fail to preview, and very large Expo directories are truncated in the listing UI.
- Text previews fall back to a binary hex-style dump when UTF-8 decoding fails.
- Expo and RNFS expose slightly different root directories depending on platform and runtime environment.
Agent Tools (LLM Integration)
When this plugin is active, it registers agent tools under the @rozenite/file-system-plugin domain.
Available tools:
list-rootslist-entriesread-entryread-text-fileread-image-file
This makes the plugin usable from Rozenite for Agents workflows in Codex, Cursor, and other coding agents that speak to the rozenite agent CLI.
Contributing
The File System plugin is open source and welcomes contributions. Check out the Plugin Development Guide to learn how to contribute or create your own plugins.
Support
If you encounter issues with the File System plugin:
- Check Documentation: Review this guide for common solutions
- Verify Setup: Ensure your chosen filesystem library is installed and passed into the hook
- Search Issues: Look for similar issues in the repository
- Create Issue: Report bugs or request features
- Community: Reach out to the Rozenite community for help
Next: Learn about Plugin Development to create your own plugins, or explore other Official Plugins.
