status-react/src/react_native/share.cljs

10 lines
244 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)))