New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-advanced-clipboard

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-advanced-clipboard

Advanced clipboard for react native

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-62.5%
Maintainers
3
Weekly downloads
 
Created
Source

react-native-advanced-clipboard

Advanced clipboard for react native. add parameter changeCount compare to official Clipboard.

Install

for npm >= 5.0

npm i react-native-advanced-clipboard
react-native link react-native-advanced-clipboard

Method

getString

same to official getString

setString

same to official setString

getContent

Get content of clipboard, include text changeCount and timestamp, this method returns a Promise, so you can use following code to get clipboard content

import Clipboard from 'react-native-advanced-clipboard';

async _getContent() {
  const content = await Clipboard.getContent();
}

the return value will be like this:

{
  text: "clipboard text",
  changeCount: 100,
  timestamp: 125868 // only support Android 8.0 and later 
}

Keywords

FAQs

Package last updated on 19 Jul 2022

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc