1.1.0 • Published 2 years ago

react-native-advanced-clipboard v1.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
2 years ago

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 
}
1.1.0

2 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago