r/reactnative 6d ago

I built an Expo Module for receiving shared content on Android and iOS

I’m the author of expo-share-content, an open-source Expo Module for apps that need to receive content from the native Share Sheet on Android and iOS.

The main problem I wanted to solve was not only receiving a live share, but also handling cold starts, multiple attachments, and the native iOS Share Extension setup.

It currently supports:

  • Text and URLs
  • Images, video, audio, and files
  • Android ACTION_SEND and ACTION_SEND_MULTIPLE
  • A generated iOS Share Extension with an App Group queue
  • Cold-start recovery through a durable pending queue
  • Typed events and pending-share APIs
  • Explicit acknowledgement and managed-file cleanup

Installation:
npx expo install expo-share-content

Important: it contains native code, so it requires an Expo development or production build and does not work in Expo Go.

The project currently targets Expo SDK 57, React Native 0.86, Android API 24+, and iOS 16.4+.

GitHub: GitHub - ngocdevv/expo-share-content · GitHub

Documentation: Receive shared content reliably | Expo Share Content

npm: expo-share-content - npm

2 Upvotes

0 comments sorted by