Natively Docs
Join our community 🔥
  • 👩‍🚀Getting Started
    • What is Natively?
    • Why Natively?
    • FAQ
    • Create Your First App
  • 🚀Natively Platform
    • 🚉Releases
    • 🖌️Appearance
      • 😼App Icon
      • 📱Loading Screen
      • 📱Error Screen
      • 🎨Style
    • 🎬Preview
    • ⭐Features
      • 🛳️Bottom Bar
      • 🚇Deeplinks
        • 🔥Firebase
        • 🔗Universal Links
        • 🌱Branch.io
      • 📍Geolocation
      • 🔔Notifications
        • 📲OneSignal Notifications
        • 🔥Firebase Notifications (Advanced)
      • 📒Contacts
      • 👩‍🎨Social Auth
        • 🍏Sign In with Apple
      • 💟HealthKit
      • 💰Purchases
      • 🤑Admob
      • 💳NFC
      • 📷Camera
      • 📂Photo Library
      • 🎤Microphone
      • 📈Analytics
        • 🕊️AppsFlyer
        • 😛Facebook
    • 🚚Publish
      • 🍏iOS App
      • 🤖Android App
    • ⚙️Settings
    • 🙈Subscription Plans
  • Guides
    • 🧋Integration (Native Features)
      • 🏅How to get started?
      • ℹ️Device
      • ℹ️Browser Info
      • 🛳️Bottom Bar
      • ✂️Clipboard
      • 🚦Push Notifications - OneSignal
      • 🚦Push Notifications - Firebase (Advanced)
      • 📍Geolocation
      • 📦App Storage
      • 🗝️Biometrics & Credentials
      • 📧Native SMS/Email
      • 📅Native Date Picker
      • 📸Native Camera
      • 🎙️Native Audio Recorder
      • 🈁Native Scanner (QR/Barcode)
      • 📔Contacts
      • 🍏Apple Sign In
      • ❤️HealthKit
      • 💸In-App Purchases
      • 🤑Admob
      • 💳NFC
      • 🥑Show Toast/Banner
      • ⏳Show/Hide Loading Screen
      • 🥑Haptic Feedback
      • 🖼️Share Media/Files
      • 📱Open an external App/URL
      • ✍️Request User's review
      • ↔️getInsets
      • 🎨Control Style & Colors
    • 🔍Troubleshooting
    • 🐈Setup RevenueCat App
    • 🚑Setup Admob App
    • 🚥Setup One Signal App
    • 🧑‍🤝‍🧑Setup website Universal Links (Deeplinks)
    • 🍕Testing & Submitting your app
    • 🔑Generate iOS Push Key (NEW)
    • 🔑Generate iOS Push Certificate (Legacy)
    • 🤝Affiliate program
    • 📕For Partners: Natively Brand Book.
Powered by GitBook
On this page
  • 🧋 Bubble.io Plugin
  • 🛠 JavaScript SDK

Was this helpful?

  1. Guides
  2. Integration (Native Features)

Share Media/Files

Sharing media files in your mobile app can enhance user engagement, serve as a tool for viral marketing, improve the user experience, help build a community, distribute content, encourage UGC.

PreviousHaptic FeedbackNextOpen an external App/URL

Last updated 2 months ago

Was this helpful?

🧋 Bubble.io Plugin

[Action] Natively - Share

  • Type - text, image, text and image or file

  • Image Url

  • Text or Url

  • File Url

First of all, specify a type if you want to share just a URL, select Type (text), and provide a URL in the Text or Url field.

Same for Text/Url + Image. Selecting a Type (both) and filling a Text or Url and Image Url fields.

For files, you need to select Type (file), and provide a URL in the File url field

🛠 JavaScript SDK

Share Image

const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
window.natively.shareImage(imageUrl);

Share Text

const text = "Text for sharing";
window.natively.shareText(text);

Share Text & Image

const text = "Text for sharing";
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
window.natively.shareTextAndImage(text, imageUrl);

Share File

const fileUrl = "http://www.africau.edu/images/default/sample.pdf";
window.natively.shareFile(fileUrl);
🧋
🖼️
Bubble.io Plugin
JavaScript SDK