Socket
Book a DemoInstallSign in
Socket

expo-clipboard

Package Overview
Dependencies
Maintainers
27
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-clipboard

Provides an interface for getting and setting Clipboard content on Android, iOS and Web.

7.1.5
latest
Source
npmnpm
Version published
Weekly downloads
402K
-5.43%
Maintainers
27
Weekly downloads
 
Created

What is expo-clipboard?

The expo-clipboard package provides a simple API for interacting with the clipboard in React Native applications. It allows you to copy text to the clipboard and read text from the clipboard, making it useful for a variety of applications that require clipboard functionality.

What are expo-clipboard's main functionalities?

Copy text to clipboard

This feature allows you to copy a string of text to the clipboard. The code sample demonstrates how to use the setStringAsync method to copy 'Hello, World!' to the clipboard.

import * as Clipboard from 'expo-clipboard';

async function copyToClipboard() {
  await Clipboard.setStringAsync('Hello, World!');
  console.log('Text copied to clipboard');
}

Read text from clipboard

This feature allows you to read a string of text from the clipboard. The code sample demonstrates how to use the getStringAsync method to read the text currently stored in the clipboard.

import * as Clipboard from 'expo-clipboard';

async function readFromClipboard() {
  const text = await Clipboard.getStringAsync();
  console.log('Text from clipboard:', text);
}

Other packages similar to expo-clipboard

Keywords

react-native

FAQs

Package last updated on 01 Jul 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.