This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-16
Channels
- # aatree (1)
- # admin-announcements (6)
- # alda (3)
- # beginners (66)
- # boot (41)
- # cider (4)
- # cljsjs (3)
- # cljsrn (18)
- # clojure (146)
- # clojure-android (2)
- # clojure-nl (1)
- # clojure-russia (35)
- # clojure-sdn (2)
- # clojure-sg (5)
- # clojure-uk (41)
- # clojurescript (116)
- # datomic (12)
- # dirac (40)
- # docker (2)
- # editors (2)
- # hoplon (85)
- # immutant (19)
- # jobs (1)
- # keechma (2)
- # lein-figwheel (8)
- # mount (33)
- # off-topic (1)
- # om (114)
- # onyx (159)
- # parinfer (24)
- # proton (3)
- # reagent (4)
- # ring-swagger (15)
- # uncomplicate (7)
- # untangled (93)
- # yada (30)
Holy cow, re-natal (and everything it's built on) is some great work.
Hello! Are there any examples of using PickerIOS? I'm pretty sure I need a couple picker-item
s but not exactly sure how to wire this beast up
here's the important part:
[picker {:style {:width 350 :height 100 :margin 100}
:selected-value "Hi!"
:key "heh wat"
:on-value-change #(alert "???")}
[picker-item {:key "ok"
:value "Lemons!"
:label "Hahah wat"}]]
(def picker-item (.-Item (.-PickerIOS js/React)))
=> change =>
(def picker-item (r/adapt-react-class (.-Item (.-PickerIOS js/React))))
@escherize: yeah the first snippet looks basically OK to me. My def is (def picker-item (r/adapt-react-class (.-PickerIOS.Item js/React)))
we should start a wiki with those kinds of snippets, @escherize
@pesterhazy: agreed; would reduce unnecessary tinkering. One thought I had was a demo gallery-app using all (or most) RN components, like a fleshed-out version of mfikes' reagent-react-native: https://github.com/mfikes/reagent-react-native/blob/master/AwesomeProject/ClojureScript/awesome-project/src/awesome_project/core.cljs
It was one of my favorite parts about re-com (http://re-demo.s3-website-ap-southeast-2.amazonaws.com)
...for instance, nontrivial examples of ListViews would be helpful.
agree