{"repo":"okwasniewski/expo-icloud-storage","free":true,"listed":false,"github":"https://github.com/okwasniewski/expo-icloud-storage","clone":"git clone https://github.com/okwasniewski/expo-icloud-storage.git","description":"React Native wrapper for iCloud's `NSUbiquitousKeyValueStore`","language":"TypeScript","stars":125,"topics":["expo","icloud","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"expo-icloud-storage Note: This is an iOS/macOS/tvOS only module. See Cross-Platform Usage for Android support. React Native wrapper for iCloud's NSUbiquitousKeyValueStore - simple key-value storage that syncs across a user's Apple devices via iCloud. Installation Configuration Expo (Managed Workflow) Add the iCloud entitlement to your app.config.ts or app.json : Then run npx expo prebuild to regenerate native projects. Bare Workflow / Manual Setup 1. Run npx pod-install after installing the npm package. 2. Enable iCloud Capability in Xcode: - Open your iOS project in Xcode - Select your app target - Go to \"Signing & Capabilities\" - Click \"+ Capability\" and add \"iCloud\" - Enable \"Key-value storage\" 3. Add Entitlement to your ios/[YourApp]/[YourApp].entitlements : API Reference set(key: string, value: string): void Store a string value in iCloud key-value storage. getString(key: string): string null Retrieve a string value from iCloud key-value storage. remove(key: string): void Remove a key-value pair from storage. getAllKeys(): string[] Get all keys currently stored in iCloud key-value storage. Usage Example Storage Limits NSUbiquitousKeyValueStore has the following limitations: Limit Value ------- ------- Total storage 1 MB Maximum keys 1024 Per-key size 1 MB Exceeding these limits may result in data loss or sync failures. Sync Behavior - Data automatically syncs across devices signed into the same iCloud account - Sync happens in the background when network is available - N","default_branch":null,"files":null,"tree":[],"storefront":"/r/okwasniewski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/okwasniewski/expo-icloud-storage/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}