mirror of
https://github.com/status-im/status-mobile.git
synced 2025-03-03 17:50:34 +00:00
13 lines
294 B
Clojure
13 lines
294 B
Clojure
(ns react-native.share
|
|
(:require
|
|
["react-native-share" :default react-native-share]))
|
|
|
|
(defn open
|
|
([options]
|
|
(open options #() #()))
|
|
([options on-success on-error]
|
|
(-> ^js react-native-share
|
|
(.open (clj->js options))
|
|
(.then on-success)
|
|
(.catch on-error))))
|