You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

expo-sharing

Package Overview
Dependencies
Maintainers
28
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-sharing

Provides a way to share files directly with other compatible applications.

13.1.5
latest
Source
npmnpm
Version published
Weekly downloads
221K
7.9%
Maintainers
28
Weekly downloads
 
Created

What is expo-sharing?

The expo-sharing package is a library for React Native applications that allows users to share files and content with other applications on their device. It is part of the Expo ecosystem and provides a simple API to invoke the native sharing capabilities of the device.

What are expo-sharing's main functionalities?

Share a file

This feature allows you to share a file from your application using the native sharing dialog. The code checks if sharing is available on the device and then shares the file located at the specified URI.

import * as Sharing from 'expo-sharing';

async function shareFile(uri) {
  if (await Sharing.isAvailableAsync()) {
    await Sharing.shareAsync(uri);
  } else {
    console.log('Sharing is not available on this platform');
  }
}

Other packages similar to expo-sharing

Keywords

react-native

FAQs

Package last updated on 30 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts