This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-07
Channels
- # aleph (1)
- # announcements (2)
- # babashka (1)
- # beginners (49)
- # calva (1)
- # cider (5)
- # clj-kondo (14)
- # cljdoc (11)
- # cljsrn (6)
- # clojure (120)
- # clojure-austin (1)
- # clojure-europe (6)
- # clojure-finland (3)
- # clojure-italy (29)
- # clojure-nl (6)
- # clojure-spec (38)
- # clojure-uk (14)
- # clojurescript (65)
- # code-reviews (8)
- # cursive (20)
- # data-science (1)
- # datascript (5)
- # datomic (57)
- # emacs (6)
- # figwheel-main (2)
- # fulcro (32)
- # funcool (1)
- # jackdaw (7)
- # jobs (3)
- # joker (7)
- # kaocha (8)
- # keechma (3)
- # nrepl (7)
- # off-topic (25)
- # quil (3)
- # re-frame (10)
- # reagent (43)
- # remote-jobs (1)
- # ring (1)
- # shadow-cljs (173)
- # sim-testing (1)
- # spacemacs (1)
- # sql (3)
- # tools-deps (34)
Hey, I was wondering how can I problematically generate components for a view, I tried this but it gives error:
...
[view {:style {}}
(doseq [[k v] (:sub-list props)]
[text {:style []} (str k " " v)])
]
...
view
and text
are react-native components:
(ns example.components
(:require [reagent.core :as r]
["react-native" :as rn]))
(def text (r/adapt-react-class (.-Text rn)))
(def view (r/adapt-react-class (.-View rn)))
yeah you are right, I want for
😄 btw speaking about order, why this code return values in different order than in my map?
cljs.user=> (for [[k v] {:a "a" :b "b" :c "c"}] (str k "--" v))
(":c--c" ":b--b" ":a--a")
I faced this problem before when I was running couple of prn
one after another and output was in wrong order. Why does it happen?