![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@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.
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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.