This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-24
Channels
- # admin-announcements (1)
- # alda (22)
- # aws-lambda (1)
- # beginners (9)
- # boot (17)
- # cider (39)
- # cljs-dev (10)
- # cljsjs (1)
- # cljsrn (14)
- # clojure (88)
- # clojure-android (1)
- # clojure-dev (9)
- # clojure-india (1)
- # clojure-russia (271)
- # clojure-spec (5)
- # clojure-uk (101)
- # clojurescript (74)
- # clojutre (11)
- # component (2)
- # cursive (24)
- # datascript (7)
- # datomic (9)
- # dirac (13)
- # docs (3)
- # emacs (4)
- # garden (21)
- # hoplon (9)
- # jobs-rus (5)
- # lein-figwheel (3)
- # leiningen (13)
- # luminus (12)
- # off-topic (1)
- # om (24)
- # onyx (84)
- # proton (3)
- # re-frame (39)
- # reagent (21)
- # rethinkdb (1)
- # slack-help (10)
- # specter (4)
- # test-check (1)
- # untangled (35)
- # yada (2)
@vikeri too bad I don't use re-frame 🙂 but I'll spend some time reading out reactotron for low hanging cljs fruit
@misha Alight, if I understood correctly the majority of the benefits comes if you have an FRP style loop with events and subscriptions. But I could be wrong. Good luck!
If I understand the ecosystem correctly, re-natal is just focused on React Native, whereas electron renders HTML
So I think you’d be looking for electron + re-frame, independent of re-natal
I used this months ago - https://github.com/ducky427/electron-template - and was able to get something up and running, but didn’t go very far with it
https://github.com/karad/lein_template_descjop seems a bit more active, though
I'm using refresh-control like this:
(def home
(r/create-class
{:get-initial-state
(fn [this]
{:refreshing false})
:render
(fn [this]
(let [on-refresh (fn []
(js/setTimeout #(r/set-state this {:refreshing false})
8000)
(r/set-state this {:refreshing true}))]
[ui/scroll-view {:bounces true
:refresh-control
(r/as-element
[ui/refresh-control
{:refreshing (:refreshing (r/state this))
:title "loading"
:tint-color "red"
:on-refresh on-refresh}]) }
[ui/view {:background-color "red"
:height 300}]]))}))
on IOS, the indicator circle will disappear after about 1s after pulling, then the screen will scroll back.