Socket
Socket
Sign inDemoInstall

react-native-secure-clipboard

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-secure-clipboard

Copy sensitive data to the clipboard without making it available to other devices


Version published
Weekly downloads
103
decreased by-0.96%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-secure-clipboard

GitHub version Maintainability Codacy Badge

About

In iOS 10 and macOS Sierra, Apple introduced Universal Clipboard as part of their Continuity feature set (also known as Handoff). While Universal Clipboard is normally a useful feature, sometimes this can pose a risk to sensitive data. Any sensitive data that is copied on an iOS device is now available on the Mac clipboard as well, allowing the data to be read by various apps and websites on the Mac. This module allows your React Native app to copy data to the iOS clipboard without making it available to the user's Mac by flagging it with the localOnly option.

Getting started

$ npm install react-native-secure-clipboard --save

or

$ yarn add react-native-secure-clipboard

Mostly automatic installation

$ react-native link react-native-secure-clipboard

iOS

CocoaPods
  1. Add the following line to your Podfile:
pod 'RNSecureClipboard', :path => '../node_modules/react-native-secure-clipboard'
  1. Run pod install
Manual Installation
  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-secure-clipboard and add RNSecureClipboard.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNSecureClipboard.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)

Usage

import RNSecureClipboard from 'react-native-secure-clipboard';

const str = "Copy this string to the clipboard";
RNSecureClipboard.setString(str);

Keywords

FAQs

Last updated on 22 Sep 2018

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