This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-04
Channels
- # beginners (90)
- # boot (5)
- # cider (89)
- # cljsrn (27)
- # clojure (33)
- # clojure-dev (2)
- # clojure-italy (3)
- # clojure-spec (35)
- # clojure-uk (17)
- # clojurescript (93)
- # code-reviews (1)
- # datascript (2)
- # datomic (14)
- # defnpodcast (6)
- # emacs (11)
- # figwheel (8)
- # figwheel-main (6)
- # hyperfiddle (14)
- # jobs-rus (1)
- # nrepl (3)
- # off-topic (13)
- # onyx (6)
- # reagent (6)
- # reitit (4)
- # shadow-cljs (110)
- # spacemacs (1)
- # tools-deps (10)
- # vim (17)
Hello all, if I use in react-native import { something } from 'something-else';
-> (def Something (js/require "something-else"))
, what would be use for import something from 'something-else';
?
Take a look at https://github.com/binaryage/cljs-oops and use (oget something-else :something)
Hi. I'm just starting out with bare-bones re-natal
app and trying to add react-navigation
. I'm keep getting "Unknown named module: ..." error. I've added the module with react-native install react-navigation
and I've restarted figwheel and the simulator. What am I doing wrong? Is this the right way to introduce new deps in the project?
I'm trying to load the module with:
(def react-navigation (js/require "react-navigation"))
the first file you have to see is android\settings.graddle
and see if it´s included there
That will add it to your index.*.js
@joshmiller I've had enable-auto-require
option on and thought this would happen automagically. But that worked, thank you!
@smogg You still need to re-natal use-figwheel
for it to scan and find new components that way, but I have mostly just stuck to doing it manually because it’s easier than tracking it down if it fails for some reason.