- Notifications
You must be signed in to change notification settings - Fork0
Copy sensitive data to the iOS clipboard without making it available to other devices
License
rajivshah3/react-native-secure-clipboard
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
$ npm install react-native-secure-clipboard --save
or
$ yarn add react-native-secure-clipboard
$ react-native link react-native-secure-clipboard
- Add the following line to your
Podfile
:
pod 'RNSecureClipboard', :path => '../node_modules/react-native-secure-clipboard'
- Run
pod install
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-secure-clipboard
and addRNSecureClipboard.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNSecureClipboard.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.