react-native-cloud-storage
Version:
☁️ Save to & read from iCloud and Google Drive using React Native
35 lines (30 loc) • 1.09 kB
JavaScript
;
/**
* Custom utility type to make properties required, but still allow null if defined.
* @internal
*/
export let CloudStorageScope = /*#__PURE__*/function (CloudStorageScope) {
CloudStorageScope["Documents"] = "documents";
CloudStorageScope["AppData"] = "app_data";
return CloudStorageScope;
}({});
/**
* Controls which on-device directory `CloudStorageScope.Documents` maps to on iCloud.
* @provider icloud
*/
export let CloudStorageProvider = /*#__PURE__*/function (CloudStorageProvider) {
/**
* Apple iCloud, backed by CloudKit.
* @platform ios
*/
CloudStorageProvider["ICloud"] = "icloud";
CloudStorageProvider["GoogleDrive"] = "googledrive";
return CloudStorageProvider;
}({});
/**
* Options for a single cloud storage provider: the iCloud options when the iCloud provider is used,
* or the Google Drive options when the Google Drive provider is used. This is the value type of
* {@link CloudStorageProviderOptions} and the shape accepted by `setProviderOptions` and the
* `CloudStorage` constructor.
*/
//# sourceMappingURL=main.js.map