This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-14
Channels
- # announcements (2)
- # aws (12)
- # aws-lambda (5)
- # beginners (42)
- # calva (56)
- # cider (16)
- # clj-kondo (1)
- # cljs-dev (45)
- # cljsjs (1)
- # cljsrn (25)
- # clojure (171)
- # clojure-europe (3)
- # clojure-italy (16)
- # clojure-losangeles (2)
- # clojure-nl (49)
- # clojure-spec (2)
- # clojure-sweden (3)
- # clojure-uk (11)
- # clojurescript (84)
- # component (11)
- # core-async (12)
- # core-logic (2)
- # cursive (8)
- # datomic (41)
- # events (2)
- # fulcro (48)
- # graalvm (1)
- # graphql (1)
- # hoplon (12)
- # jackdaw (1)
- # jobs (1)
- # jobs-discuss (45)
- # joker (5)
- # keechma (10)
- # nyc (3)
- # off-topic (14)
- # pathom (16)
- # qa (1)
- # re-frame (22)
- # reagent (12)
- # reitit (4)
- # remote-jobs (1)
- # shadow-cljs (40)
- # spacemacs (3)
- # timbre (3)
- # tools-deps (29)
ah! that got me through that thicket; I now get a map canvas that says "Google" on it. Thanks! Now back to their documentation to get an idea why there's nothing on the map...
Awesome!
@worlds-endless you need to make map be absolute position
Next task: customizing my header bar. But more generally, understanding when I'm in CLJS land and when I need to whip out :>
, #js
,`adapt-react-class`, etc...
Here, it says I should stick <Button...>
jsx into NavigationOptions.HeaderRight
. What's the cljs translation of this, given that I have a (def button (r/adapt-react-class (.-Button react-native)))
?
Ah! Got it!
Exactly what I was about to say worked!
Just replaced reactify-component
with as-element
in the header-right-component; only change, and now things are showing up
I guess reagent.core/as-element
answers my question about how to translate examples where we stick jsx components into react-native options
Curious question for the channel -- how do you develop your cljsrn apps? I have an ANdroid Studio AVD, figwheel in emacs, and see what things do by going up to the AVD. I have no idea how to see a console or logs, etc.
Are you familiar with https://facebook.github.io/react-native/docs/debugging
Ah! that was new to me. I'm android on Firefox usually, but most of that looks like it should still apply
When you say Chrome debugger, what is that? Are you sending Chrome to some page that goes along with the AVD?
I’m looking for some hints about using RefreshControl
. Basically it works, but there’s a problem: when you change its state to refreshing: true
, it immediately triggers re-rendering of the component it’s attached to, thus resetting the state back. Did anyone have any luck properly solving this?
I have this function I don't completely understand, but I need to let-extract the function navigation.navigate()
so I can pass it down the tree. Any suggestions how?
I see it's in the props
that reactify-component seems to magically have access to, but I don't know how else to get at it?
what I want is like (let [press-fn #(.navigate navigation "TargetScreen"] ... )
I think what you want to do is pull it from a separate function, like so:
(defn nav-wrapper
[component title]
(fn [{:keys [navigation]}]
(let [{navigate :navigate} navigation]
;...
)))