react-native-icloud-sync
A react-native wrapper for syncing with icloud.
Add it to your project
- Run
npm install react-native-icloud-sync --save
- Open your project in XCode, right click on
Libraries
and clickAdd Files to "Your Project Name"
(Screenshot) then (Screenshot). - Add
libRNiCloudSync.a
toBuild Phases -> Link Binary With Libraries
(Screenshot). - Whenever you want to use it within React code now you can:
var icloud = require('react-native-icloud-sync')
Example
var icloud = ; //store.jsvar store = {}; //handle icloud progress.icloudeventEmitter; // subscribe for progress notifications.icloud; //save the progress to icloudicloud; moduleexports = store;