cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
Shako Farhad 2020-05-29T15:21:11.233600Z

Anyone have experience with re-animated and GestureHandler?

Shako Farhad 2020-05-29T15:22:45.233700Z

This works.

Shako Farhad 2020-05-29T15:24:06.234100Z

This does not work

Shako Farhad 2020-05-29T15:25:59.236100Z

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

Shako Farhad 2020-05-29T15:44:00.236500Z

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?

dnolen 2020-05-29T19:06:08.237600Z

I think may have fixed the Krell Windows path issues, give it a spin if you're on that platform

raspasov 2020-05-29T20:13:50.240300Z

@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

raspasov 2020-05-29T20:16:29.242100Z

… 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

Shako Farhad 2020-05-29T20:22:23.242900Z

@raspasov That makes sense. Interesting. Thanks for the feedback! I will look into it!

raspasov 2020-05-29T20:22:58.243200Z

@shakof91 no problem ✌️

thheller 2020-05-29T21:04:03.243900Z

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?

raspasov 2020-05-29T21:08:59.244200Z

shake your device, there might be some options

thheller 2020-05-29T21:09:11.244500Z

done that ... (there used to be a second option, now there is only fast refresh)

raspasov 2020-05-29T21:09:27.245Z

hmm.. yea not sure 🙂 don’t use Expo myself…

Oliver George 2020-05-29T21:28:57.246100Z

@dnolen that’s exciting. I’ll give Krell on Windows a spin over the weekend.