A React Native library (v1.9.5) that provides an API for accessing Android's Scoped Storage, required for apps targeting API 30+. It allows reading/writing files in user-selected directories without WRITE_EXTERNAL_STORAGE permission. Uses the Storage Access Framework (SAF) via document tree pickers and persisted URI permissions. Actively maintained, weekly releases on npm. Key differentiator: handles scoped storage complexities that React Native's built-in FS module lacks.
npm install react-native-scoped-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to request a directory, persist permission, write and read a file in scoped storage.
Always use user-selected URIs; never assume you can access arbitrary paths.
Call ScopedStorage.persistPermission(uri) after user grants access.
Use the returned file object's name, not the one you passed.
Always use URI-based methods: readFile, writeFile with parentUri.
Use `import * as ScopedStorage from 'react-native-scoped-storage'`
Use ScopedStorage.readFile or writeFile with a URI.