Module Clipboard-BsReactNative

let getString: unit => Js.Promise.t(string);

Clipboard gives you an interface for setting and getting content from Clipboard on both iOS and Android

You can read more on Clipboard API usage in official docs: https://facebook.github.io/react-native/docs/alert

Example of use

setString
Clipboard.setString("Let's save some text to clipboard.");
getString
Clipboard.getString()
  |> Js.Promise.then_(text => Js.Promise.resolve(Js.log(text)))
  |> ignore;

Function parameters

getString
unit => Js.Promise.t(string);
setString
string => unit;
let setString: string => unit;