Lovable Prompt
Add social sharing functionality to my 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'Create a social sharing system that uses Despia URLs like: despia(`shareapp://message?=${message}&url=${url}`) where message contains the text content to share and url contains the link to share, triggering the device’s native share dialog with pre-populated content.This feature requires native capabilities which will be fully provided by the “despia-native” npm package, no additional native libraries are needed!
Installation
Install the Despia package from NPM:Usage
1. Import the SDK
2. Execute Social Share Dialog
Call thedespia() function with a Social Share Command:
Share Parameters
Social share URLs must include proper parameters:- message: Text content to include in the share dialog
- url: The URL/link to share alongside the message
Platform Support
Supports all sharing platforms including:- Social Media (Facebook, Twitter, Instagram, LinkedIn)
- Messaging Apps (WhatsApp, Telegram, iMessage, SMS)
- Email Clients (Gmail, Outlook, Apple Mail)
- Cloud Storage (Google Drive, Dropbox, iCloud)
- Clipboard and System Share
- Note-taking Apps (Evernote, OneNote, Apple Notes)
- And any other sharing-enabled application
Resources
- NPM Package
- View full NPM documentation for additional configuration options