This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-29
Channels
- # announcements (1)
- # babashka (83)
- # beginners (67)
- # chlorine-clover (22)
- # cider (11)
- # circleci (6)
- # clj-kondo (12)
- # cljs-dev (137)
- # cljsrn (15)
- # clojure (124)
- # clojure-europe (40)
- # clojure-italy (1)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-serbia (3)
- # clojure-spec (19)
- # clojure-uk (14)
- # clojuredesign-podcast (5)
- # clojurescript (80)
- # conjure (49)
- # core-async (62)
- # cursive (18)
- # datascript (1)
- # datomic (64)
- # docker (28)
- # emacs (20)
- # figwheel-main (249)
- # fulcro (95)
- # graalvm (2)
- # jobs-discuss (11)
- # joker (2)
- # juxt (4)
- # lambdaisland (9)
- # leiningen (1)
- # meander (14)
- # mount (6)
- # off-topic (16)
- # pathom (46)
- # re-frame (35)
- # reagent (6)
- # reitit (5)
- # shadow-cljs (28)
- # spacemacs (6)
- # sql (18)
- # tools-deps (26)
- # vim (8)
- # xtdb (23)
- # yada (1)
Anyone have experience with re-animated and GestureHandler?
This works.
This does not work
Anyone know why the second one does not work? It is as if I am not recieving any native events. The cursor is not moving at all. It is really frustrating because if the second one does not work, then I have to make new values and new gesture function handlers for each and every button instead of having a function that generates it all :s
Does all re-animated values and functions have to be global? Is that why? Is it perhaps possible to create global variables with a function?
I think may have fixed the Krell Windows path issues, give it a spin if you're on that platform
@shakof91 I have some experience, but it has been a while; I believe you’re correct; you can setup a fn like:
(defn onGestureEvent [tX tY]
(re-animated/event [{:nativeEvent
{:translationX tX
:translationY tY}}]))
… and then yes, for each component you can create a new tX, tY etc… or re-use the same one… really depends on what you’re trying to achieve; I usually have a global ClojureScript (defonce mutable-state (atom {})) that holds all my mutable “stuff” that’s not a ClojureScript immutable data structure; that way I can globally add to or get from that atom from anywhere in the project
@raspasov That makes sense. Interesting. Thanks for the feedback! I will look into it!
can anyone tell me how to disable the build-in reloading expo does? fast refresh I can disable but it still does something else it seems?
@dnolen that’s exciting. I’ll give Krell on Windows a spin over the weekend.