We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbaf83 commit 180e658Copy full SHA for 180e658
reason-react-native/src/apis/Clipboard.md
@@ -1,14 +1,24 @@
1
---
2
id: apis/Clipboard
3
title: Clipboard
4
-wip: true
+officialDoc: https://facebook.github.io/react-native/docs/clipboard
5
6
7
+## Methods
8
+
9
+### `getString`
10
11
+To attempt reading content from the Clipboard; resolves to a `string` if
12
+successful.
13
14
```reason
-[@bs.module "react-native"] [@bs.scope "Clipboard"]
-external getString: unit => Js.Promise.t(string) = "";
15
+getString: unit => Js.Promise.t(string)
16
+```
17
18
+### `setString`
19
-external setString: string => unit = "";
20
+To copy a `string` to the Clipbard.
21
22
+```reason
23
+setString: string => unit
24
```
0 commit comments