react-native-clipboard-plus
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

Package Sidebar

Install

npm i react-native-clipboard-plus

Weekly Downloads

16

Version

1.0.6

License

MIT

Unpacked Size

1.05 MB

Total Files

207

Last publish

Collaborators

  • geeky-apo