Skip to main content
Version: 0.6

Install with Expo

If with expo ,you need prebuild your project.

Step1

npm install react-native-cloud-store

Step2

Edit your expo config file app.json/app.config.js:

module.exports = () => ({
// ...
plugins: [
[
"react-native-cloud-store",
{
iCloud: {
kv: {
enabled: true,
},
documents: {
containerId: `iCloud.xxxx`,
enabled: true,
visible: true,
visibleName: `myDisplayName`,
},
},
},
],
],
});

Step3

  1. run the following command to prebuild your project:

    expo prebuild
  2. open your ios folder using XCode and add iCloud capability:

    • Go to developer account website and make sure your app identifier enabled iCloud: enable-icloud-in-identifier

    • Back to XCode, select your target -> Signing & Capabilities tab -> click "+ Capability" -> search and add "iCloud" just live below: add-ability-in-xcode

      then scroll to iCloud settings part: if you use key-value storage check Key-value storage , if you use iCloud documents check iCloud Documents and then select or create a container