React Native Cloud Storage
Interfaces

CloudStorageProviderOptions

Properties

PropertyTypeDescription
googledriveobject-
googledrive.accessToken?| string | (() => string | Promise<string | null> | null) | nullThe Google Drive access token, or a function that returns it synchronously or asynchronously. The function is called before each request and when checking cloud availability.
googledrive.kvPollInterval?number | nullThe polling interval in milliseconds for key-value external-change detection. Polling requires a finite value of at least 1 ms. It is off for null, undefined, non-finite, or non-positive values.
googledrive.kvStrictLimits?booleanWhether to enforce iCloud-equivalent limits for Google Drive key-value storage. Defaults to true.
googledrive.scope?CloudStorageScopeThe directory scope to use for Google Drive operations. Defaults to 'app_data'.
googledrive.strictFilenames?booleanWhether to throw if a path component matches multiple files or directories. Defaults to false.
googledrive.timeout?numberThe timeout in milliseconds after which to cancel an API request. Defaults to 3000.
icloudobject-
icloud.documentsMode?ICloudDocumentsModeThe directory mode to use for CloudStorageScope.Documents. icloud uses the user-facing iCloud Documents directory, while legacy_sandbox uses the local app sandbox Documents directory. Defaults to icloud.
icloud.scope?CloudStorageScopeThe directory scope to use for iCloud operations. Defaults to 'app_data'.

On this page