Read & write files
Read, write, stat, and list files with an API that follows Node's fs conventions.
React Native Cloud Storage
Use iCloud and Google Drive as file or key-value storage in your React Native app, with an intuitive API, React hooks, and an Expo config plugin.
import { CloudStorage } from 'react-native-cloud-storage';// Write a file to the cloud...await CloudStorage.writeFile('/data.json', data.toString());// ... and read it back!const data = await CloudStorage.readFile('/data.json');Read & write files
Read, write, stat, and list files with an API that follows Node's fs conventions.
Cloud-backed key-value storage
Store data natively in the iCloud key-value store or in an emulated JSON-based Google Drive store
iCloud & Google Drive
One API, two providers. Use the default platform backend, or pick your own.
React hooks
useCloudFile and useIsCloudAvailable keep your UI in sync with cloud state.
iCloud (iOS only)
Backed by a native CloudKit module.
Google Drive
Backed by the Drive REST API using an access token.
Install the library, follow the platform setup, and start reading and writing cloud data in minutes.
Read the docs