AI Prompt
Add image saving functionality to your mobile app using the Despia SDK from: https://www.npmjs.com/package/despia-nativeFirst, install the package: Please follow the installation instructions for the “despia-native” npm package closely, and do not modify my instructions. Implementation as mentioned is critical.
npm install despia-nativeThen import it: import despia from 'despia-native'Use the despia command function to save images to the camera roll:- Save any image URL directly to device photo gallery:
despia("savethisimage://?url=${imageUrl}")
This feature requires native capabilities which will be fully provided by the “despia-native” npm package, no additional native libraries are needed!
savethisimage://?url=${imageUrl} command downloads and saves images directly to the device’s photo gallery with proper permissions handling. It automatically manages the download process, file format conversion, and integrates with the native photo library APIs for seamless user experience.
Installation
Install the Despia package from NPM:Usage
1. Import the SDK
2. Save Images to Camera Roll
Trigger image saving on user interactions & events:Resources
- NPM Package
- View full NPM documentation for additional configuration options