1- # ` @reason -react-native/clipboard `
1+ # ` @rescript -react-native/clipboard `
22
3- [ ![ Build Status] ( https://github.com/reason -react-native/clipboard/workflows/Build/badge.svg )] ( https://github.com/reason -react-native/clipboard/actions )
4- [ ![ Version] ( https://img.shields.io/npm/v/@reason -react-native/clipboard.svg )] ( https://www.npmjs.com/@reason -react-native/clipboard )
5- [ ![ Chat ] ( https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue )] ( https://reason-react-native.github.io/discord / )
3+ [ ![ Build Status] ( https://github.com/rescript -react-native/clipboard/workflows/Build/badge.svg )] ( https://github.com/rescript -react-native/clipboard/actions )
4+ [ ![ Version] ( https://img.shields.io/npm/v/@rescript -react-native/clipboard.svg )] ( https://www.npmjs.com/@rescript -react-native/clipboard )
5+ [ ![ ReScript Forum ] ( https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org )] ( https://forum.rescript-lang.org / )
66
7- [ ReScript] ( https://rescript-lang.org ) / [ Reason ] ( https://reasonml.github.io ) bindings for
7+ [ ReScript] ( https://rescript-lang.org ) bindings for
88[ ` @react-native-community/clipboard ` ] ( https://github.com/react-native-clipboard/clipboard ) .
99
1010Exposed as ` ReactNativeClipboard ` module.
1111
12- ` @reason -react-native/clipboard ` X.y.\* means it's compatible with
12+ ` @rescript -react-native/clipboard ` X.y.\* means it's compatible with
1313` @react-native-community/clipboard ` X.y.\*
1414
1515## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020you can install the bindings:
2121
2222``` console
23- npm install @reason -react-native/clipboard
23+ npm install @rescript -react-native/clipboard
2424# or
25- yarn add @reason -react-native/clipboard
25+ yarn add @rescript -react-native/clipboard
2626```
2727
28- ` @reason -react-native/clipboard ` should be added to ` bs-dependencies ` in your
28+ ` @rescript -react-native/clipboard ` should be added to ` bs-dependencies ` in your
2929` bsconfig.json ` :
3030
3131``` diff
3232{
3333 //...
3434 "bs-dependencies": [
35- "reason- react",
36- "reason -react-native",
35+ "@rescript/ react",
36+ "rescript -react-native",
3737 // ...
38- + "@reason -react-native/clipboard"
38+ + "@rescript -react-native/clipboard"
3939 ],
4040 //...
4141}
@@ -50,29 +50,29 @@ yarn add @reason-react-native/clipboard
5050To attempt reading content from the Clipboard; resolves to a ` string ` if
5151successful.
5252
53- ``` reason
53+ ``` rescript
5454getString: unit => Js.Promise.t(string)
5555```
5656
5757### ` setString `
5858
5959To copy a ` string ` to the Clipbard.
6060
61- ``` reason
61+ ``` rescript
6262setString: string => unit
6363```
6464
6565## Hooks
6666
6767### ` useClipboard `
6868
69- ``` reason
69+ ``` rescript
7070useClipboard: unit => (string, string => unit)
7171```
7272
7373#### Example
7474
75- ``` reason
75+ ``` rescript
7676open ReactNative;
7777
7878ReactNativeClipboard.setString("initial value");
@@ -99,11 +99,11 @@ releases.
9999## Contribute
100100
101101Read the
102- [ contribution guidelines] ( https://github.com/reason -react-native/.github/blob/master/CONTRIBUTING.md )
102+ [ contribution guidelines] ( https://github.com/rescript -react-native/.github/blob/master/CONTRIBUTING.md )
103103before contributing.
104104
105105## Code of Conduct
106106
107107We want this community to be friendly and respectful to each other. Please read
108- [ our full code of conduct] ( https://github.com/reason -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
108+ [ our full code of conduct] ( https://github.com/rescript -react-native/.github/blob/master/CODE_OF_CONDUCT.md )
109109so that you can understand what actions will and will not be tolerated.
0 commit comments