mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-11 13:29:19 +00:00
695eba45af
Close #125 Fix #122
17 lines
436 B
Markdown
17 lines
436 B
Markdown
# Clipboard
|
|
|
|
Clipboard gives you an interface for setting to the clipboard. (Getting
|
|
clipboard content is not supported on web.)
|
|
|
|
## Methods
|
|
|
|
static **getString**()
|
|
|
|
Returns a `Promise` of an empty string.
|
|
|
|
static **setString**(content: string): boolean
|
|
|
|
Copies a string to the clipboard. On web, some browsers may not support copying
|
|
to the clipboard, therefore, this function returns a boolean to indicate if the
|
|
copy was successful.
|