### Start Example App Packager Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/CONTRIBUTING.md Starts the Metro server for the example application. Changes in JavaScript code will be reflected without a rebuild. ```sh pnpm example start ``` -------------------------------- ### Run Development Server Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/apps/docs/README.md Starts the development server for the documentation site from the repository root. Ensures workspace dependencies are resolved correctly. ```sh pnpm --filter react-native-cloud-storage-docs dev ``` -------------------------------- ### Install iOS Pods Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/apps/docs/content/docs/installation/react-native.mdx Navigate to the ios directory and install the necessary pods for the iOS native module. ```bash cd ios && pod install && cd .. ``` -------------------------------- ### Run Example App on Android Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/CONTRIBUTING.md Builds and runs the example application on an Android device or emulator. Native code changes require a rebuild. ```sh pnpm example android ``` -------------------------------- ### Install Expo Cloud Storage Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/README.md Install the library for Expo projects. ```sh npx expo install react-native-cloud-storage ``` -------------------------------- ### Run Example App on iOS Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/CONTRIBUTING.md Builds and runs the example application on an iOS simulator or device. Native code changes require a rebuild. ```sh pnpm example ios ``` -------------------------------- ### Quick Start: Read and Write Files Source: https://github.com/kuatsu/react-native-cloud-storage/blob/master/README.md Demonstrates basic file operations (write and read) using the CloudStorage API. Ensure the cloud storage is available and configure provider options if using Google Drive. ```jsx import React from 'react'; import { Platform, View, Text, Button } from 'react-native'; import { CloudStorage, CloudStorageProvider, useIsCloudAvailable } from 'react-native-cloud-storage'; const App = () => { const cloudAvailable = useIsCloudAvailable(); React.useEffect(() => { if (CloudStorage.getProvider() === CloudStorageProvider.GoogleDrive) { // get access token via @react-native-google-signin/google-signin or similar CloudStorage.setProviderOptions({ accessToken: 'some-access-token' }); } }, []); const writeToCloud = async () => { await CloudStorage.writeFile('/file.txt', 'Hello, world!'); console.log('Successfully wrote file to cloud'); }; const readFromCloud = async () => { const value = await CloudStorage.readFile('/file.txt'); console.log('Successfully read file from cloud:', value); }; return ( {cloudAvailable ? ( <>