Module ActionSheetIOS-BsReactNative
type options=
;|Message(string)|URL(string)You can read more on
ActionSheetIOSAPI usage in official docs: https://facebook.github.io/react-native/docs/actionsheetiosExample of use
showActionSheetWithOptions
ActionSheetIOS.showActionSheetWithOptions( ~options=[|"Agree", "Disagree", "Leave"|], ~cancelButtonIndex=2, ~destructiveButtonIndex=1, buttonIndex => Js.log( "You pressed button with index: " ++ string_of_int(buttonIndex), ), (), );showShareActionSheetWithOptions
ActionSheetIOS.showShareActionSheetWithOptions( ~options=Message("Hello, welcome to my new ReasonML app"), ~subject="New app", error => Js.log(error), (hasSucceeded, methodOfSharing) => Js.log( "Has sharing succeeded: " ++ string_of_bool(hasSucceeded) ++ ", with method: " ++ methodOfSharing, ), (), );Function parameters
showActionSheetWithOptions
options
~options: array(string)reference
type options = | Message(string) | URL(string);cancelButtonIndex
~cancelButtonIndex: int=?destructiveButtonIndex
~destructiveButtonIndex: int=?title
~title: string=?message
~message: string=?tintColor
~tintColor: string=?callback
int => unitnon-labeled argument
unitshowShareActionSheetWithOptions
options
~options: array(string)reference
type options = | Message(string) | URL(string);subject
~subject: string=?excludedActivityTypes
~excludedActivityTypes: array(string)=?error
error => unitcallback
(bool, string) => unitnon-labeled argument
unit
let showActionSheetWithOptions: options:array(string) => ?cancelButtonIndex:int => ?destructiveButtonIndex:int => ?title:string => ?message:string => ?tintColor:string => (int => unit) => unit => unit;