react-native-cloud-storage
Version:
☁️ Save to & read from iCloud and Google Drive using React Native
22 lines (19 loc) • 796 B
text/typescript
import { Platform } from 'react-native';
import { CloudStorageProvider, CloudStorageProviderOptions, CloudStorageScope, DeepRequired } from '../types/main';
export const LINKING_ERROR =
`The package 'react-native-cloud-storage' doesn't seem to be linked. Make sure: \n\n` +
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
'- You rebuilt the app after installing the package\n' +
'- You are not using Expo Go\n';
export const DEFAULT_PROVIDER_OPTIONS: DeepRequired<CloudStorageProviderOptions> = {
[CloudStorageProvider.ICloud]: {
scope: CloudStorageScope.AppData,
documentsMode: 'icloud',
},
[CloudStorageProvider.GoogleDrive]: {
scope: CloudStorageScope.AppData,
accessToken: null,
strictFilenames: false,
timeout: 3000,
},
};