This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-05
Channels
- # announcements (5)
- # beginners (49)
- # boot (9)
- # calva (34)
- # cider (9)
- # clara (18)
- # clj-kondo (1)
- # cljsrn (7)
- # clojure (196)
- # clojure-dev (4)
- # clojure-europe (11)
- # clojure-france (3)
- # clojure-nl (13)
- # clojure-norway (2)
- # clojure-spec (8)
- # clojure-uk (85)
- # clojurescript (87)
- # clojurex (202)
- # core-logic (6)
- # data-science (6)
- # datomic (9)
- # dirac (1)
- # duct (93)
- # emacs (9)
- # events (1)
- # fulcro (22)
- # hoplon (30)
- # jackdaw (10)
- # keechma (1)
- # leiningen (5)
- # malli (17)
- # off-topic (9)
- # other-languages (3)
- # pedestal (7)
- # re-frame (3)
- # reagent (5)
- # reitit (9)
- # remote-jobs (6)
- # rewrite-clj (80)
- # ring (2)
- # shadow-cljs (191)
- # tools-deps (54)
- # vim (14)
- # xtdb (7)
Hello all, I’m venturing into clojurescript and react native (via expo) for the first time, and for now, just trying to get my feet planted underneath me. I have been able to setup and run each of the following in a simulator with an attached repl: https://github.com/PEZ/rn-rf-shadow https://github.com/thheller/reagent-expo https://github.com/seantempesta/expo-cljs-template My question is, once I have the default app running, how do I require and use another expo package like “expo-battery” or “expo-device”?
for anything that uses shadow-cljs just (:require ["expo-battery" :as foo])
(in the ns) and then use foo/whatever
.
That’s what I thought, but in my case
Unable to resolve "expo-battery" from "app/index.js"
Failed building JavaScript bundle.
Hold on, restarting the bundler.
ok, restarting the bundler fixed that
Thanks