Fork me on GitHub
#cljsrn
<
2018-07-31
>
danielneal07:07:38

@olivergeorge you might be interested in reanimated which allows more of the interactions between gestures and animations (e.g. a carousel that snaps into position) to take place on the UI thread,

Oliver George07:07:43

Actually I take that back. Was thinking of another one. https://github.com/timothypratley/reanimated

Oliver George07:07:22

Thanks @danieleneal I came across that one googling. Wasn't sure what benefits beyond convenience it unlocked.

danielneal08:07:03

haha two with the same name 😄

danielneal08:07:14

I think it's a performance thing really

danielneal08:07:13

I've not tried it but it's top of my list of animation related things to try. As far as I understand the main benefit is performance - with the built in Animated library there are certain animations/interactions that you can't do on the ui thread / useNativeDriver doesn't work. When info needs to go across the bridge animations can get jerky. Reanimated apparently builds up a set of composable lower level things that you can use to build more complex interactions and send the whole thing across and have it run on the native ui thread. Kind of like the idea behind Animated just taken to the next level

Oliver George08:07:34

Interesting thanks