This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-02
Channels
- # aleph (6)
- # beginners (37)
- # boot (415)
- # cider (17)
- # cljs-dev (79)
- # cljsjs (3)
- # cljsrn (18)
- # clojars (3)
- # clojure (34)
- # clojure-france (6)
- # clojure-italy (1)
- # clojure-korea (1)
- # clojure-russia (22)
- # clojure-spec (64)
- # clojure-uk (47)
- # clojurebridge (6)
- # clojurescript (61)
- # clojurex (1)
- # cloverage (11)
- # component (6)
- # cursive (73)
- # data-science (6)
- # datascript (4)
- # datomic (38)
- # editors (1)
- # emacs (4)
- # events (16)
- # funcool (5)
- # garden (3)
- # hoplon (17)
- # jobs (2)
- # klipse (74)
- # off-topic (3)
- # om (81)
- # onyx (35)
- # parinfer (4)
- # pedestal (1)
- # perun (20)
- # planck (9)
- # proton (1)
- # re-frame (17)
- # reagent (3)
- # ring-swagger (1)
- # rum (7)
- # untangled (63)
- # vim (8)
@tiensonqin: Does exponent-cljs have the same problems where the React Native packager hits out of memory errors (I think related to parsing the final cljs output files looking for require dependencies)?
@seantempesta Don’t have this out of memory errors recently, since I switched to advanced
mode.
Does anyone know what causes that in Emacs/Cider: If I eval (.createElement react "Text" nil "Hello”)
then I got errors in repl like:
#object[TypeError TypeError: Cannot convert a symbol to a string]
join@[native code]
cljs$core$IFn$_invoke$arity$1
cljs$core$str
cljs$core$pr_writer_impl
cljs$core$pr_writer
cljs$core$pr_sequential_writer
cljs$core$print_map
cljs$core$pr_writer_impl
cljs$core$pr_writer
cljs$core$pr_seq_writer
cljs$core$pr_sb_with_opts
cljs$core$pr_str_with_opts
cljs$core$IFn$_invoke$arity$variadic
cljs$core$pr_str
eval code
eval@[native code]
figwheel$client$utils$eval_helper
Although if I eval (str (.createElement react "Text" nil "Hello”))
then everything works just fineHey. Have anyone tried to integrate react-native-modal-picker with re-natal? I’ve installed the lib with npm, and configured figwheel to pick it up, but I’m stuck require’ing it. This doesn't look right, does it (as it yields object, and it should be number or string for hiccup to pick it up)?
(def modal-picker (r/adapt-react-class (js/require “react-native-modal-picker”))
@pawel.kapala look at your .re-natal for the modules key. ex: "modules": [ "@exponent/ex-navigation" ],
@siner I think I got it
I had it in my .`re-natal` file properly
the issue was with ES6 export default class
so instead of (def modal-picker (r/adapt-react-class (js/require “react-native-modal-picker”))
I used:
(def modal-picker (r/adapt-react-class (aget (js/require “react-native-modal-picker”) “default”)))
Not sure if this is the proper way of requiring this module, but it surely worked for me
oh yeah that one got me too earlier. I use this: (defonce NavigationProvider (.-default (js/require "@exponent/ex-navigation/src/ExNavigationProvider.js")))
I think you'll run into issue with your aget way to do it when you run optimizations because of the "default" name being shorten and such..
@sineer Thanks a lot! You probably saved me a day of debugging after optimizations: I’ll change that right away.
you're welcome. This awesome article is how I know that: http://squirrel.pl/blog/2013/03/28/two-ways-to-access-properties-in-clojurescript/
Yeah, that’s perfect