Module Share-BsReactNative

let share: content:[< `text(string) | `url(string) ] => ?⁠title:string => ?⁠subject:string => ?⁠tintColor:string => ?⁠excludedActivityTypes:array(string) => ?⁠dialogTitle:string => unit => Js.Promise.t(bool);

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

Example of use

Share.share(
  ~content=URL("https://callstack.com", Some("Callstack Home Page")),
  (),
);
Share.share(
  ~content=Message("Sharing something", Some("The title for my message")),
  (),
);

Function parameters

content
content: content 

reference:

type content =
  | Message(message, option(title))
  | URL(url, option(title));
subject
subject: string=? 
tintColor
tintColor: string=? 
excludedActivityTypes
excludedActivityTypes: array(string)=? 
dialogTitle
dialogTitle: string=? 
non-labeled argument
unit