# react-native-icloud

> wrapping nsfilemanager for icloud usage

Latest version **0.1.1** (published 2015-10-29) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install react-native-icloud
pnpm add react-native-icloud
yarn add react-native-icloud
bun add react-native-icloud
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-10-29 |
| First published | 2015-10-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | watert |
| Maintainers | watert |
| Keywords | react-native, react-component, ios, icloud |

## Links

- npm: https://www.npmjs.com/package/react-native-icloud
- Repository: https://github.com/watert/react-native-icloud
- Homepage: https://github.com/watert/react-native-icloud#readme
- Issues: https://github.com/watert/react-native-icloud/issues
- npm.io page: https://npm.io/package/react-native-icloud

## Recent versions

- 0.1.1 (latest) — 2015-10-29

## README

# react-native-icloud
wrapping nsfilemanager for icloud usage

## Installation:

Put `RCTICloudDocuments.m` in your XCode Project

## Usage:
```javascript
var Documents = React.NativeModules.ICloudDocuments;

// get iCloud token
Documents.getICloudToken((token)=>{});

// get iCloud or local doc root
Documents.iCloudDocumentPath((path)=>{});
Documents.documentPath((path)=>{});

// overwrite file to or from iCloud
Documents.replaceFileToICloud(localPath, (err,resultURL)=>{});
Documents.replaceFileFromICloud(iCloudPath, (err,resultURL)=>{});

// copy file to or from iCloud
Documents.copyFileToICloud(localPath, (err,resultURL)=>{});
Documents.copyFileFromICloud(iCloudPath, (err,resultURL)=>{});

// move file to or from icloud
Documents.moveFileToICloud(localPath, (err,resultURL)=>{});
Documents.moveFileFromICloud(iCloudPath, (err,resultURL)=>{});

// get file attributes with path
Documents.attributesOfItemAtPath(path,(err,attrs)=>{});

// contents at item or directory
Documents.contentsAtPath(manifest,(err,contents)=>{}); // utf8 encoded
Documents.contentsOfDirectoryAtPath(path, (err, files)=>{});

// remove file with path
Documents.removeFileAtPath(pathToRemove,(err, isSuccess)=>{});
```

---
_Source: https://npm.io/package/react-native-icloud · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
