This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-12
Channels
- # aws (21)
- # aws-lambda (8)
- # beginners (53)
- # boot (56)
- # braveandtrue (1)
- # cider (49)
- # cljs-dev (8)
- # cljsjs (1)
- # cljsrn (57)
- # clojure (403)
- # clojure-austin (17)
- # clojure-dusseldorf (10)
- # clojure-greece (9)
- # clojure-spec (57)
- # clojure-uk (144)
- # clojurescript (60)
- # datomic (149)
- # docker (1)
- # emacs (1)
- # hoplon (23)
- # humor (1)
- # jobs (1)
- # leiningen (2)
- # luminus (1)
- # off-topic (1)
- # om (24)
- # om-next (15)
- # onyx (23)
- # protorepl (2)
- # re-frame (58)
- # reagent (90)
- # remote-jobs (1)
- # ring-swagger (4)
- # slackpocalypse (1)
- # spacemacs (2)
- # specter (18)
- # untangled (4)
- # vim (1)
- # yada (27)
For my app, I assumed I would use cljs-ajax and but I couldn’t get a simple GET to work. I was forced to use js/fetch. This was a problem specifically on Android (I didn’t test on iOS).
cljs-ajax works on iOS for me
@levitanong you sure will 😛
in the react native tutorial, there are three ways to do networking, there's fetch, xmlhttprequest, and websocket
@ejelome: sure, no prob.
It's true, cljs ajax doesn't work on android
hmmm ... what's the equivalent of onChangeText
attribute in re-natal? :on-change-text
doesn't seem to work
it uses http://goog.net internally
we’re talking about this correct? http://facebook.github.io/react-native/releases/0.40/docs/textinput.html#onchangetext
this is the code:
(defn pizza-translator []
(let [char (r/atom "")]
(fn []
[view {:style {:padding 10}}
[text-input
{:style {:height 40}
:placeholder "Type here to translate!"
:on-change-text #(% (reset! char %))}]])))
here:
;; doesn't work
:on-change-text #(% (reset! char %))
;; works:
:on-change-text (fn [this] (reset! char this))
@raspasov can I have a hint why the shorthand doesn't work? or it's not really equivalent?