Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@reason-react-native/clipboard
Advanced tools
ReScript bindings for @react-native-community/clipboard.
@reason-react-native/clipboard
ReScript / Reason bindings for
@react-native-community/clipboard
.
Exposed as ReactNativeClipboard
module.
@reason-react-native/clipboard
X.y.* means it's compatible with
@react-native-community/clipboard
X.y.*
When
@react-native-community/clipboard
is properly installed & configured by following their installation instructions,
you can install the bindings:
npm install @reason-react-native/clipboard
# or
yarn add @reason-react-native/clipboard
@reason-react-native/clipboard
should be added to bs-dependencies
in your
bsconfig.json
:
{
//...
"bs-dependencies": [
"reason-react",
"reason-react-native",
// ...
+ "@reason-react-native/clipboard"
],
//...
}
getString
To attempt reading content from the Clipboard; resolves to a string
if
successful.
getString: unit => Js.Promise.t(string)
setString
To copy a string
to the Clipbard.
setString: string => unit
useClipboard
useClipboard: unit => (string, string => unit)
open ReactNative;
ReactNativeClipboard.setString("initial value");
let make = () => {
let (data, setData) = ReactNativeClipboard.useClipboard();
<View>
<Button title=data onPress={_ => setData("new value")} />
</View>
};
Check the changelog for more informations about recent releases.
Read the contribution guidelines before contributing.
We want this community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.
1.5.1 - 2020-11-17
Fix npm description
FAQs
ReScript bindings for @react-native-community/clipboard.
The npm package @reason-react-native/clipboard receives a total of 0 weekly downloads. As such, @reason-react-native/clipboard popularity was classified as not popular.
We found that @reason-react-native/clipboard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.