Files
status-react/src/react_native/share.cljs
T

11 lines
248 B
Clojure

(ns react-native.share
(:require
["react-native-share" :default react-native-share]))
(defn open
[options on-success on-error]
(-> ^js react-native-share
(.open (clj->js options))
(.then on-success)
(.catch on-error)))