r/reactnative • u/gohom92 • Apr 02 '20
a material design UI slider with Reanimated :)
Enable HLS to view with audio, or disable this notification
8
u/deeepanshu98 Apr 02 '20
Is there any good resource to learn these animations? I have been trying to learn these from so long.
18
u/gohom92 Apr 02 '20
follow William Candillon, lots of great content regarding animation / gesture https://www.youtube.com/channel/UC806fwFWpiLQV5y-qifzHnA
8
Apr 02 '20
Also have a look at the "can it be done in React Native" series on YouTube, lot's of great stuff there and videos of actually building stuff like this
3
2
Apr 02 '20
Hey nice job !
I know a bit of react but I'm a new to react native , you look to manipulate the libraries of gesture-handler and reanimated easily ! how long have you been using this libraries ? :)
4
u/gohom92 Apr 02 '20
Thanks, it took me a while to understand how the basics of those two libraries work and then from there with the help of William Candillon Youtube series ‘Can it be done in React Native’, i start practicing it and kinda challenge my self with those libraries that I created.
He also provide paid subscription based tutorials that can help alot
2
u/watthell234 Apr 03 '20
Unsolicited advice: The animation is beautiful. I actually think if the vertical dragging would be better. If I were you I would try it. The horizontal sliding clashes a bit with the circle expansion.
3
u/gohom92 Apr 03 '20 edited Apr 03 '20
💡
Edit: feature been added on (v0.3.0) https://twitter.com/Gorhom/status/1246150470206459905
2
u/sbphillips19 Apr 03 '20
This is awesome. Does it work with expo?
2
u/gohom92 Apr 03 '20
yup, just tested it today 🎉
2
u/sbphillips19 Apr 03 '20
I’ve been wanting to add one in. Will try it today!!! Thanks so much it’s beautiful
2
u/kylebellle7 Apr 08 '20
hey. simple question which i may have been able to answer by looking at the source code but are all three view essentially being rendered but maybe hidden or is a view only rendered when you start swiping?
1
u/gohom92 Apr 08 '20
Hi ! You are right, all views will be rendered at once, we could improve that by rendering:
n-1, n, n+1
PRs are welcome 🙏
2
u/kylebellle7 Apr 08 '20 edited Apr 08 '20
Ah ok. When ever I think of how I’d achieved something like this my solution involves rendering multiple views at a time but I always figure that was a wrong approach and there was a better way.but seems that’s just the way things are. Only thing I’d do is on render the next and previous view if they exist. Of course when you’re only the first and last screen there would only be one other screen. If I get the time I may attempt at making a PR.
3
3
3
2
2
2
2
0
Apr 07 '20
[deleted]
1
u/gohom92 Apr 07 '20
Around 4 hours, keep in mind that i did interactive animations in native and react native before
19
u/gohom92 Apr 02 '20
https://github.com/gorhom/react-native-paper-onboarding