This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-02
Channels
- # aleph (14)
- # boot (4)
- # cider (3)
- # clara (1)
- # cljs-dev (62)
- # cljsrn (20)
- # clojure (81)
- # clojure-berlin (2)
- # clojure-russia (76)
- # clojure-spec (35)
- # clojure-turkiye (1)
- # clojurescript (84)
- # cursive (2)
- # data-science (6)
- # datomic (4)
- # hoplon (92)
- # lumo (35)
- # om-next (1)
- # pedestal (2)
- # re-frame (2)
- # reagent (36)
- # ring-swagger (10)
- # unrepl (30)
- # untangled (124)
@amorokh 😀 Thank you for your om-navigate lib.I am learning it.Can you teach me the meaning of render-screen function?Why clone?
@raspasov out of curiosity, I create a fresh re-natal project with re-natal init FutureApp
. I changed the compilation option of prod-build to :advanced and launched a ‘Release’ locally : lein clean && lein prod-build && react-native run-ios --configuration Release
. It failed with this log: https://gist.github.com/gphilipp/9d5631c425abe438314f5f6cf026f692
@gphilipp the actual error is this
[error][tid:com.facebook.react.JavaScript] Assert failed: c
that's a reagent error if I'm not mistaken (though a terribly undescriptive one)
my guess is this? https://github.com/reagent-project/reagent/blob/master/src/reagent/core.cljs#L55
probably a use of property access (.-foo bar)
you're probably using something like this:
(def react-native (js/require "react-native"))
(def view (r/adapt-react-class (.-View react-native)))
instead try using (r/adapt-react-class (gobj/get react-native "View"))
you'll need to replace all the uses of .-
like this
the second option is to add an externs file for react native
the third option is to not use advanced compilation at all
(edited)
Can someone help me understand why the starter project generated by re-natal duplicates the code in android/core.cljs
and ios/core.cljs
? The files are identical apart from the namespace as far as I can see?
I would imagine that this code could be shared between iOS and Android? But perhaps there’s something I’m missing that means that it can’t be?
@gphilipp Setting up externs can be as easy as simply adding a dep in project.clj
on https://github.com/artemyarulin/react-native-externs (it worked for my project)