15 lines
376 B
Clojure
15 lines
376 B
Clojure
(ns react-native.background-timer
|
|
(:require ["react-native-background-timer" :default background-timer]))
|
|
|
|
(defn set-timeout [cb ms]
|
|
(.setTimeout background-timer cb ms))
|
|
|
|
(defn clear-timeout [id]
|
|
(.clearTimeout background-timer id))
|
|
|
|
(defn set-interval [cb ms]
|
|
(.setInterval background-timer cb ms))
|
|
|
|
(defn clear-interval [id]
|
|
(.clearInterval background-timer id))
|