Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

rajivshah3/react-native-secure-clipboard

Repository files navigation

GitHub versionMaintainabilityCodacy Badge

About

In iOS 10 and macOS Sierra, Apple introducedUniversal 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 thelocalOnly 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 yourPodfile:
pod 'RNSecureClipboard', :path => '../node_modules/react-native-secure-clipboard'
  1. Runpod install

Manual Installation

  1. In XCode, in the project navigator, right clickLibrariesAdd Files to [your project's name]
  2. Go tonode_modulesreact-native-secure-clipboard and addRNSecureClipboard.xcodeproj
  3. In XCode, in the project navigator, select your project. AddlibRNSecureClipboard.a to your project'sBuild PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)

Usage

importRNSecureClipboardfrom'react-native-secure-clipboard';conststr="Copy this string to the clipboard";RNSecureClipboard.setString(str);

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp