How to Add a Share Sheet to Your Expo App

DavidDavid October 17, 2026 8 min read

How to add a share sheet to your Expo app, in short

There are two tools, and picking the right one is most of the job. For text and links, use the Share API that ships with React Native: import { Share } from 'react-native' and call Share.share({ message: 'Check this out', url: 'https://yourapp.com/item/42' }). It opens the system share sheet and needs no extra package. For files, use expo-sharing: install it with npx expo install expo-sharing and call Sharing.shareAsync(fileUri) with the path of a file on the device. That opens the same system sheet with the file attached, so the user can AirDrop it, save it to Files, or send it in a message.

Most broken share buttons I see in Expo apps come from mixing these up: calling expo-sharing with a string of text, or handing shareAsync an https link and wondering why nothing happens. This guide covers both paths, plus the details that bite on iPad and Android.

Which one to use: Share or expo-sharing

Share (react-native) vs expo-sharing

Share from react-nativeexpo-sharing
Best forText, links, invite messagesFiles: images, PDFs, CSV exports, audio
InstallNone, it is part of React Nativenpx expo install expo-sharing
Input{ message, url, title }A local file URL, plus options
Tells you what happenedOn iOS, sharedAction or dismissedAction. On Android, always sharedActionResolves when the sheet closes, no result detail
Works in Expo GoYesYes (sending files)

My recommendation: use Share for anything that is words or a link, which covers invite-a-friend buttons, sharing a post, and referral links. Reach for expo-sharing only when there is a real file to hand over. Do not add expo-sharing just to share a URL.

Step 2: Share files with expo-sharing

  1. Install: npx expo install expo-sharing. Using expo install picks the version that matches your SDK.
  2. Import: import * as Sharing from 'expo-sharing'.
  3. Check support: if (!(await Sharing.isAvailableAsync())) { show a message and stop }. This matters most on web, where sharing depends on the browser.
  4. Share the file: await Sharing.shareAsync(file.uri, { mimeType: 'application/pdf', dialogTitle: 'Share your report' }).

Expo's reference describes the first argument as a local file URL. That is the line AI-generated code gets wrong most often. Passing https://... to shareAsync is not how it is meant to be used. The file has to exist on the device first. On web it is the opposite: Expo's docs say local files cannot be shared by URI there, so a web build has to upload the file and share that link instead.

The options, per Expo's reference: mimeType (Android and iOS) sets the file type, dialogTitle (Android and web) sets the sheet title, UTI (iOS) sets the Uniform Type Identifier, and anchor (iOS) positions the sheet on iPad. On iOS, mimeType and UTI are only used to give the file the right extension, and they take precedence over the existing one: Expo's example is image.pdf shared as image/jpeg becoming image.pdf.jpeg. Give files the correct extension when you create them and you rarely need either option.

Getting a file to share: download it or render it

Since shareAsync needs a file on the device, the real work is producing that file. The common cases:

  • A file on your server (a receipt PDF, an exported image): download it into the cache with expo-file-system, then share it. Following Expo's docs: const file = await File.downloadFileAsync(url, new File(Paths.cache, 'receipt.pdf')); then Sharing.shareAsync(file.uri). File and Paths come from 'expo-file-system'.
  • Data you build in the app (a CSV export, a JSON backup): write it to a file first. const out = new File(Paths.cache, 'export.csv'); out.write(csvText); then share out.uri.
  • A share card made from a screen (a score, a progress summary, a quote): capture the view as an image with react-native-view-shot, which Expo's docs list as included in Expo Go. Its captureRef function with result: 'tmpfile' gives you a temporary file URI you can pass straight to shareAsync.
  • A photo the user picked: the image picker already returns a local URI. See [how to add an image picker to your Expo app](/blog/how-to-add-an-image-picker-to-your-expo-app).

iPad: anchor the share sheet or it lands in the wrong place

On iPhone the share sheet slides up from the bottom. On iPad it appears as a popover that points at something. Both APIs have an anchor option for this, documented as iOS only and for iPad. If your app runs on iPad (and an iPhone app can run on iPad unless you turned that off), test the share button there. Measure the button's position and pass it as the anchor with x, y, width and height for expo-sharing, so the popover points at the button the user tapped.

If App Review tests on iPad, a share button that does nothing or shows the sheet in a strange spot is the kind of bug that leads to a rejection under app completeness. [How to pass Apple App Review](/blog/how-to-pass-apple-app-review) covers what reviewers check.

Receiving shares from other apps (the experimental part)

Showing up in other apps' share sheets, so users can send a photo or link into your app, is a different feature. expo-sharing has it, through its config plugin. In app.json you enable ios.enabled (which adds an iOS Share Extension target) and android.enabled (which adds the intent filters), and you declare what you accept: on iOS an activationRule like supportsImageWithMaxCount or supportsWebUrlWithMaxCount, on Android singleShareMimeTypes and multipleShareMimeTypes such as image/*. Then you rebuild.

Incoming shares arrive as a deep link whose hostname is expo-sharing. With Expo Router you catch it in app/+native-intent.ts and redirect to a handler screen, where the useIncomingShare hook gives you the shared items (resolvedSharedPayloads, isResolving, error) and clearSharedPayloads to reset them.

Mistakes that break sharing in Expo

  • Using expo-sharing to share plain text or a link. Use Share from react-native.
  • Passing a web URL to Sharing.shareAsync. Download the file to the cache first.
  • Sharing only url with Share.share. It is iOS only, so Android users get nothing. Put the link in message.
  • Treating sharedAction as proof of a share. On Android it always comes back as sharedAction.
  • Files with no or the wrong extension, which makes other apps refuse them. Name files with the right extension when you create them.
  • Copying FileSystem.downloadAsync from an old tutorial instead of the current File.downloadFileAsync.
  • Never testing on iPad, where the sheet needs an anchor.
  • Shipping the receive-shares plugin without testing it, when Expo itself labels it experimental.

If the thing being shared is a photo or video the user just took, the capture side is in [how to add a camera to your Expo app](/blog/how-to-add-a-camera-to-your-expo-app).

Have Claude Code set it up for you

Open your project in the Claude Code desktop app and be specific about which content uses which API. Without that, the AI tends to reach for one library for everything. A prompt that covers the usual cases:

Then add a line to your [CLAUDE.md](/blog/claude-md-for-expo-apps) like "text and links share with react-native Share; files share with expo-sharing from a local cache file; never pass a web URL to shareAsync" so a later session does not undo it. Test on a real iPhone, an iPad or iPad simulator, and an Android device.

The short version

To add a share sheet to your Expo app: for text and links, call Share.share from react-native and put the link in message so Android gets it too. For files, install expo-sharing, get the file onto the device first (download it, write it, or capture a view), and pass its local URI to Sharing.shareAsync. Anchor the sheet on iPad. Leave receiving shares from other apps until you really need it, because Expo still calls it experimental.

If you are building your first iOS app with Claude Code and Expo and want a second pair of eyes on it before App Review, bring it to App Store Launch Club. Members share their builds for feedback, and the [curriculum](/curriculum) covers the full path from first build to first users. Join at applaunchclub.co for $9 a month.

Free app-building tips, straight to your inbox

Short, practical drops on app ideas, validating fast, store listings, and passing app review. No spam, unsubscribe anytime.

Frequently asked questions

How do I share text or a link in an Expo app?

Use Share.share from react-native: await Share.share({ message, url }). No extra package is needed. The url field only works on iOS, so include the link in message as well for Android.

How do I share a file in Expo?

Install expo-sharing with npx expo install expo-sharing, make sure the file is on the device, and call Sharing.shareAsync(fileUri). Check Sharing.isAvailableAsync() first.

Why does Sharing.shareAsync not work with my URL?

shareAsync takes a local file URL, not a web link. Download the file into the cache with File.downloadFileAsync from expo-file-system, then share the downloaded file's uri.

Does expo-sharing work in Expo Go?

Yes, expo-sharing is included in Expo Go, so sending files works there. Receiving shares from other apps needs the config plugin and a new build.

How do I know if the user actually shared something?

On iOS, Share.share resolves with sharedAction or dismissedAction. On Android it always resolves with sharedAction, so you cannot reliably tell whether the user completed the share.

Can my Expo app appear in other apps' share sheets?

Yes, with the expo-sharing config plugin (ios.enabled and android.enabled plus the content types you accept) and the useIncomingShare hook. Expo marks this as experimental, and on iOS it relies on behavior Apple does not officially support.

Why is my share sheet in the wrong place on iPad?

On iPad the sheet is a popover that needs an anchor. Pass the anchor option (x, y, width, height of the tapped button) so it points at the right spot.

Last reviewed by David on October 17, 2026

David

Written by

David

Founder and app builder

Keep reading

ExpoClaude Code

How to Add Notification Actions to Your Expo App

To add notification actions to an Expo app, register a category with Notifications.setNotificationCategoryAsync, give it action buttons (and optionally a text reply), set categoryIdentifier on the notification, then read response.actionIdentifier in a response listener. Here is every action option, how to handle taps when the app was closed, the Android and iOS differences, and a Claude Code prompt that wires it all up.

David 8 min
Read article
ExpoClaude Code

How to Schedule Local Notifications in Your Expo App

To schedule local notifications in an Expo app, install expo-notifications, set a notification handler, ask for permission, create an Android channel, then call scheduleNotificationAsync with your content and a trigger like DAILY, WEEKLY or DATE. Here is every trigger type, how to cancel and list what is scheduled, why Android reminders arrive late, and a Claude Code prompt that builds the whole reminder flow.

David 8 min
Read article

Ready to build it yourself?

Join App Store Launch Club, the #1 community for building and launching apps, for $9/month.

← Back to the blog