File System Plugin
The File System plugin adds a file explorer to React Native DevTools, so you can browse your app’s directories and preview files without leaving the DevTools window.
Installation
Section titled “Installation”Make sure to go through the Getting Started guide before installing the plugin.
npm install -D @rozenite/file-system-pluginyarn add -D @rozenite/file-system-pluginpnpm add -D @rozenite/file-system-pluginbun add -D @rozenite/file-system-pluginInstall whichever filesystem library your app already uses:
npm install -D expo-file-systemyarn add -D expo-file-systempnpm add -D expo-file-systembun add -D expo-file-systemnpm install -D @dr.pogodin/react-native-fsyarn add -D @dr.pogodin/react-native-fspnpm add -D @dr.pogodin/react-native-fsbun add -D @dr.pogodin/react-native-fsWith Expo FileSystem
Section titled “With Expo FileSystem”import * as FileSystem from 'expo-file-system';import { createExpoFileSystemAdapter, useFileSystemDevTools,} from '@rozenite/file-system-plugin';
function App() { useFileSystemDevTools({ adapter: createExpoFileSystemAdapter(FileSystem), });
return <YourApp />;}With RNFS
Section titled “With RNFS”import RNFS from '@dr.pogodin/react-native-fs';import { createRNFSAdapter, useFileSystemDevTools,} from '@rozenite/file-system-plugin';
function App() { useFileSystemDevTools({ adapter: createRNFSAdapter(RNFS), });
return <YourApp />;}Once configured, the plugin appears in DevTools as “File System”. You can jump between roots (document, cache, bundle, and others depending on your library), navigate folders, and preview text and image files inline. Files that can’t be decoded as text fall back to a hex-style preview.
File transfer
Section titled “File transfer”Importing and exporting files is off by default. Turn it on with fileTransfer when you want the panel to move files in or out of your app:
useFileSystemDevTools({ adapter: createRNFSAdapter(RNFS), fileTransfer: { import: true, export: true, },});Imports keep the original filename and ask before overwriting an existing file.
If you also want coding agents to import or export files through Rozenite for Agents, opt in separately:
useFileSystemDevTools({ adapter: createRNFSAdapter(RNFS), fileTransfer: { import: true, export: true, agent: { import: true, export: true }, },});createExpoFileSystemAdapterworks with both the modernexpo-file-systemAPI andexpo-file-system/legacy.createRNFSAdaptersupports bothreact-native-fsand@dr.pogodin/react-native-fs.- File transfer handles one file at a time, within visible filesystem roots.
Agent Tools (LLM Integration)
Section titled “Agent Tools (LLM Integration)”When active, this plugin registers agent tools under the @rozenite/file-system-plugin domain: list-roots, list-entries, read-entry, read-text-file, read-image-file, plus export-file / import-file when the matching fileTransfer.agent option is enabled.
Next: Learn about Plugin Development, or explore other Official Plugins.