Socket
Socket
Sign inDemoInstall

react-native-clipboard-plus

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-clipboard-plus

React Native module for copy and paste image with Native Clipboard


Version published
Maintainers
1
Install size
1.00 MB
Created

Readme

Source

react-native-clipboard-plus

React Native module for copy and paste image with Native Clipboard (currently iOS only)

Installation

yarn add react-native-clipboard-plus
npx pod-install

Usage

import ClipboardPlus from 'react-native-clipboard-plus';

// Paste string and/or images from Native Clipboard
const pasteResult = await ClipboardPlus.paste();

// Clear contents from Native Clipboard
await ClipboardPlus.clearAll();

// Copy text into Native Clipboard
const copyResult = await ClipboardPlus.copyText('Text to be copied');

// Copy URL into Native Clipboard
const copyResult = await ClipboardPlus.copyUrl('https://www.google.com/');

// Copy base64 string into Native Clipboard
const copyResult = await ClipboardPlus.copyImage(base64, uri);

Example

Open folder example. Run commands and see the example demo

cd example
yarn install
yarn ios

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Keywords

FAQs

Last updated on 22 Sep 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc