This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-10
Channels
- # announcements (4)
- # beginners (111)
- # calva (12)
- # cider (10)
- # cljdoc (1)
- # cljs-dev (7)
- # cljsrn (4)
- # clojure (38)
- # clojure-houston (1)
- # clojure-serbia (3)
- # clojure-spec (22)
- # clojure-uk (26)
- # clojurescript (4)
- # cursive (1)
- # data-science (1)
- # datomic (12)
- # klipse (1)
- # off-topic (25)
- # pathom (9)
- # protorepl (3)
- # quil (4)
- # shadow-cljs (43)
- # tools-deps (24)
does anyone have a FlatList example I can crib from? I have
["react-native" :as rn]
[reagent.core :as r]
;;...
[:> rn/FlatList {:data #js["one" "two" "three" "four"]
:render-item (fn [item] (r/as-element [:> rn/Text item]))}]
and I’m getting Objects are not valid as a React child
object with keys {item, index, separators}[flat-list {:data (clj->js (range 6))
:render-item (fn [e]
(r/as-element [text {:style {:font-weight "100"
:font-size 30}} (get-in (js->clj e :keywordize-keys true)
[:item])]))}]
`thanks 🙂