{"id":4604,"url":"https://github.com/chirag04/react-native-icloud-sync","last_synced_at":"2025-04-30T16:21:57.433Z","repository":{"id":35915461,"uuid":"40202937","full_name":"chirag04/react-native-icloud-sync","owner":"chirag04","description":"A react-native wrapper for syncing with icloud","archived":false,"fork":false,"pushed_at":"2015-09-24T19:20:07.000Z","size":132,"stargazers_count":59,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T02:56:55.839Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chirag04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-04T18:45:42.000Z","updated_at":"2024-11-12T13:23:05.000Z","dependencies_parsed_at":"2022-07-08T15:18:47.763Z","dependency_job_id":null,"html_url":"https://github.com/chirag04/react-native-icloud-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirag04%2Freact-native-icloud-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirag04%2Freact-native-icloud-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirag04%2Freact-native-icloud-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chirag04%2Freact-native-icloud-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chirag04","download_url":"https://codeload.github.com/chirag04/react-native-icloud-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251739950,"owners_count":21635950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:17.656Z","updated_at":"2025-04-30T16:21:57.394Z","avatar_url":"https://github.com/chirag04.png","language":"Objective-C","funding_links":[],"categories":["Components"],"sub_categories":["System"],"readme":"# react-native-icloud-sync\n\nA react-native wrapper for syncing with icloud.\n\n### Add it to your project\n\n1. Run `npm install react-native-icloud-sync --save`\n2. Open your project in XCode, right click on `Libraries` and click `Add\n   Files to \"Your Project Name\"` [(Screenshot)](http://url.brentvatne.ca/jQp8) then [(Screenshot)](http://url.brentvatne.ca/1gqUD).\n3. Add `libRNiCloudSync.a` to `Build Phases -\u003e Link Binary With Libraries`\n   [(Screenshot)](http://url.brentvatne.ca/17Xfe).\n4. Whenever you want to use it within React code now you can: `var icloud = require('react-native-icloud-sync')`\n\n\n## Example\n```javascript\nvar icloud = require('react-native-icloud-sync');\n\n//store.js\nvar store = {};\n\n//handle icloud progress.\nicloud.eventEmitter.on('update', (update) =\u003e {\n  \n  //reason for this update?\n  if([icloud.ServerChange, icloud.InitialSync].indexOf(update.reason) \u003e -1) {\n    //update asyncStorage.\n    AsyncStorage.multiSet(STORAGE_KEYS);\n  }\n\n});\n\n// subscribe for progress notifications.\nicloud.subscribe();\n\n//save the progress to icloud\nicloud.save(key, value);\n\nmodule.exports = store;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchirag04%2Freact-native-icloud-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchirag04%2Freact-native-icloud-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchirag04%2Freact-native-icloud-sync/lists"}