React Native Animated Donut Chart with React Native SVG and Animated API

  Рет қаралды 43,651

Catalin Miron

Catalin Miron

Күн бұрын

Пікірлер: 120
@hypersudo8092
@hypersudo8092 4 жыл бұрын
This man is really sharing good practices for react-native because many of us focus on functionality but not in good UI. Guys, please support him may be he will teach us awesome parts of react-native. Love from INDIA.
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
I can’t describe how happy I am that I can share my knowledge with you. Thank you so much for showing your support and kind words I truly appreciate it. Thanks Harshvardhan ✌️
@BLUEOVI
@BLUEOVI 3 жыл бұрын
I came here searching for a way to animate a number text input and ended up solving 2 problems in my app. Amazing tutorial man! Keep it up ;) !
@tawalioualao7444
@tawalioualao7444 3 жыл бұрын
From Benin (Africa) I follow you. Watch your Conf and your animation tutoral. You're just amazing.
@justanotherguy8121
@justanotherguy8121 Жыл бұрын
Small note: React native recommends against setNativeProps nowadays. So instead, just make a strokeDashoffset variable with useState, then pass that into the circle. animatedValue.addListener((v) => { if (circleRef?.current) { const maxPerc = (100 * v.value) / max; const strokeDashOffset = circleCircumference - (circleCircumference * maxPerc) / 100; setStrokeDashoffset(strokeDashOffset); // I no longer use this below code // circleRef.current.setNativeProps({ // strokeDashOffset, // }); } }); Thank you so much for this!
@os23-n8g
@os23-n8g 3 жыл бұрын
Mersi mult Catalin. Am incercat 1000 de metode si in final tot un roman m-a ajutat sa rezolv :)
@leonelkahameni5315
@leonelkahameni5315 4 жыл бұрын
Nice tutorial I like it. Thanks. You are one of the best react native teachers on youtube. 🙏
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Wow, thanks a lot Leonel! ✌️
@marianareissilveira
@marianareissilveira 2 жыл бұрын
Amazing video, as always... Thanks for sharing!!
@enio.carlos
@enio.carlos Жыл бұрын
Thank you so much, Catalin.
@legcsabi
@legcsabi 2 жыл бұрын
Fixes for the web: - originX={halfCircle} and originY={halfCircle} instead of origin={`${halfCircle}, ${halfCircle}`} - circleRef.current.setNativeProps is undefined, use a state to store the calculated strokeDashoffset - add [] as dependency to React.useEffect to prevent additional calls
@justanotherguy8121
@justanotherguy8121 Жыл бұрын
You saved me, thank you
@chamaldezilva
@chamaldezilva 3 жыл бұрын
amazing content!!! addicted to your tutorials!!!
@xdankitjain
@xdankitjain 4 жыл бұрын
Great work Catalin, Very well explained.
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thank you Ankit, I’m glad you like it. Thanks ✌️
@sidhant500
@sidhant500 3 жыл бұрын
Thanks a lot Catalin...Love from Canada.
@CatalinMironDev
@CatalinMironDev 3 жыл бұрын
Thank you Sidhant 🤗
@ayushKumar-9835
@ayushKumar-9835 Жыл бұрын
Thanks man, this tutorial helped alot..
@totaltotal157
@totaltotal157 4 жыл бұрын
Nice!!! Thanks for posting these videos!
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Glad you like them! Thanks ✌️
@eduardopelitti7799
@eduardopelitti7799 2 жыл бұрын
Thank you very much for sharing!
@syedmoamberraza1490
@syedmoamberraza1490 3 жыл бұрын
i have tried many time but won't get success, the actual thing is to explain in a proper general manners, which he knows very well. Great Work LOVE From PAKISTAN.
@rahulraina711
@rahulraina711 2 жыл бұрын
You are a saviour
@tininottiny8685
@tininottiny8685 3 жыл бұрын
So good man, thanks for this!
@juliendevleeschauwer8226
@juliendevleeschauwer8226 3 жыл бұрын
Thanks a lot, man. This is awesome.
@bilelrahmouni01
@bilelrahmouni01 2 жыл бұрын
Thank you
@remixedOne
@remixedOne 2 жыл бұрын
I miss his videos a lot, He lately not uploading. Hope you are doing good and will get back to youtube soon
@youssefmuhamad3213
@youssefmuhamad3213 4 жыл бұрын
Awesome as always!
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thank you so much Youssef 🤗
@devina1957
@devina1957 3 жыл бұрын
thank you, very helpful
@rockNbrain
@rockNbrain 2 жыл бұрын
Nice job bro
@emilsvensson7212
@emilsvensson7212 2 жыл бұрын
This video really helped me with the project I am doing! Wanted to get you a coffee for the help but the link does not work - so I guess I need a tutorial for buying coffee next…
@정이든-i4r
@정이든-i4r 3 жыл бұрын
Really Really Really Really APPRECIATED!!
@CatalinMironDev
@CatalinMironDev 3 жыл бұрын
Thank you so much ✌️
@geekthegeek730
@geekthegeek730 4 жыл бұрын
Awesome tutorial buddy!
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thanks a lot ✌️I’m glad that you liked it 👍
@Dmitri_Ivanovich
@Dmitri_Ivanovich 3 жыл бұрын
I don't think "percentage" means what you think it means. Other than that - great tutorial. Thanks!
@edgardoalvarez980
@edgardoalvarez980 3 жыл бұрын
How did you learn to do all of this? It's amazing!
@godwinebikwo6544
@godwinebikwo6544 4 жыл бұрын
Great video, and explanation
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Glad you liked it and thank you Godwin ✌️
@migom6
@migom6 4 жыл бұрын
Awesome content as always! Any coming tuts on pan gesture handle like pinch to zoom or tinder swipes ?
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Great suggestion! I'll consider creating a tinder like app in the upcoming videos. Thanks Madhurjya! ✌️
@charfeddinehajlaoui4572
@charfeddinehajlaoui4572 4 жыл бұрын
Well done sir you have a great videos in this channel ... my question is how to fix the value and not let it change like in the tutorial .. for example i want to display the balance of holiday or the days left in a holiday.. and thanx
@anthonyamponsah1693
@anthonyamponsah1693 2 жыл бұрын
Great tutorials Miron. I have a minor issue. I have followed the tutorials but there is a problem. The component does not animate on mount unless I bind the animated value to a view and later remove it from the view then it animates. What could be the issue?
@senixcode5601
@senixcode5601 3 жыл бұрын
cool
@lailabouziani7704
@lailabouziani7704 4 жыл бұрын
thanx, very helpful
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
You’re welcome Laila, I’m glad that you found it useful. ✌️
@khalidkhan5308
@khalidkhan5308 4 жыл бұрын
Wow amazing 😍
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thank you Khalid, I’m glad you found it useful ✌️
@NaveenKumar-fo4kz
@NaveenKumar-fo4kz 3 жыл бұрын
Please make a video about firebase using expo and hooks
@CatalinMironDev
@CatalinMironDev 3 жыл бұрын
I’ll start a series about firebase really soon. Thanks for the great suggestion Naveen ✌️
@SamuelBotelho
@SamuelBotelho 4 жыл бұрын
awesome, keep it up!
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thanks Samuel ✌️
@sumanparajuli229
@sumanparajuli229 4 жыл бұрын
Sir, i am grateful that i got your channel. Sir can you create a fully functional react native app using react native CLI with good UI, good animation and backend and finally publish to google play store.
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
I plan on doing it after I'll finish the 10 Video series for Shared Element transitions in React Native. Thanks for the suggestion Suman ✌️
@nishadpatil9886
@nishadpatil9886 4 жыл бұрын
Really great video ..
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thanks Nishad, I’m glad it helped you ✌️
@iaxelrad
@iaxelrad 3 жыл бұрын
Amazing! That's just what i was looking for. What type of adjustments would you recommend to do if I wanted to add a kind of gradient to the color ?
@CatalinMironDev
@CatalinMironDev 3 жыл бұрын
Thanks Itamar. For gradients I recomment using Def + gradient svg and apply the gradient as fill for the path. Fill=“url(#grad)” ✌️
@iaxelrad
@iaxelrad 3 жыл бұрын
@@CatalinMironDev thanks! I'll give it a go :)
@utkarsh223
@utkarsh223 2 жыл бұрын
HOW CAN I STOP THE ANIMATION ONCE IT REACHES THE MAX?? PLEASE HELP
@nadeemkhan-yu4wf
@nadeemkhan-yu4wf 4 жыл бұрын
its very nice.
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Thanks Nadeem I’m glad you like it ✌️
@johanagamez450
@johanagamez450 3 жыл бұрын
Amazing video! Can I put the donuts one inside the other?
@3366ashish
@3366ashish 2 жыл бұрын
Can you please create demo on how to animate polygon as well. Couldn't find lot of assets for it.
@fouadchahd2969
@fouadchahd2969 3 жыл бұрын
thank you sir for this amazing video but how to stop the donut from refreshing it self?
@krtgaming8253
@krtgaming8253 Жыл бұрын
Any idea for setting rotation to 135 degree? The origin is not correct.
@vietcuong7972
@vietcuong7972 2 жыл бұрын
Can someone help me why the cicle ring is not full width and height of the view outside?
@richardkirigaya8254
@richardkirigaya8254 3 жыл бұрын
Hi Catalin, lovely vid, really enjoyed it, how i can make sure the donut doesn't animate past 100% but remains there at 100%
@richardsonlyon8108
@richardsonlyon8108 2 жыл бұрын
Hi, thanks for the great tutorial, but I seem to be having some problems. I seem to be getting an error message: Animated node with tag 23 does not exist, please help if you can.
@itsmejorday4426
@itsmejorday4426 3 жыл бұрын
what theme did you use? the color really smooth, like it.
@CatalinMironDev
@CatalinMironDev 3 жыл бұрын
My VSCode theme is Palenight and font family is Operator Mono. Thanks Jorday! ✌️
@tknumber12
@tknumber12 3 жыл бұрын
@Catalin Miron, thanks for the great video. It was very helpful. I have a question. I have used some animated svgs just as you have shown, but now my scrollview won't work unless my finger touches an animation. Outside of the animation (donut svgs) a touch event on the screen does not work and the screen won't scroll. Any tips? Thanks
@tknumber12
@tknumber12 3 жыл бұрын
Never mind, It is because I was wrapping my screen in a touchableWithoutFeedback
@nileshsingh7253
@nileshsingh7253 3 жыл бұрын
Hello Sir please make video on react d3 gauge with needle which show value.
@appforeseen6298
@appforeseen6298 3 жыл бұрын
I tried setting animatedValue to strokeDashoffset directly. It look like: strokeDashoffset={animatedValue}. But why it can't animate to final value or the round still there(strokeLinecap="round")? And your way the round will disappear!
@umaralfaruq1304
@umaralfaruq1304 3 жыл бұрын
what is the name of the font
@muhammadmuzammil7592
@muhammadmuzammil7592 2 жыл бұрын
please also make pie chart in expo
@saishkalbag7103
@saishkalbag7103 Жыл бұрын
Your snack code is not animating and pasting it in my react native code didn't start the animation
@karthikbalasubramanian5122
@karthikbalasubramanian5122 2 жыл бұрын
Hey thanks for a Great Video. One doubt though, Will this work in the React Native Web or a Web Storybook? Can anyone help me out here.
@anasalamin9164
@anasalamin9164 4 жыл бұрын
Can you please make more content about graphs... There's a huge shortage in this context of RN
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Anas Alamin right now I have a 10 video series about shared element transition, most probably after it I’ll tackle this subject. Thanks Anas ✌️
@bloggerklik
@bloggerklik 3 жыл бұрын
Hi, I want to add an svg icon above the bar chart. How can I do that?
@naishe
@naishe 4 жыл бұрын
Not a moment ago I installed and used this library: github.com/vydimitrov/react-countdown-circle-timer and here is your video. Pleasantly surprised. Love your videos.
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
This looks amazing Nishant, I didn’t knew about it. Thanks for sharing it with us. ✌️
@naishe
@naishe 4 жыл бұрын
@@CatalinMironDev yeah, I was wondering how it was done, and bam! your tutorial. Thanks for the videos. Keep them coming. I like them a lot.
@QueenA7
@QueenA7 3 жыл бұрын
This was a really helpful video. Thank you! I am having issues with it showing up properly on Android, though. It will show the circles properly when they are unanimated, but as soon as I animate them, it only shows circle one and never shows the animation. Any advice on what I can check to get this working?
@QueenA7
@QueenA7 3 жыл бұрын
Never mind... I added useNativeDriver = {false} for android, and that seemed to fix it. Thanks for the great video!
@edgardoalvarez980
@edgardoalvarez980 3 жыл бұрын
@@QueenA7 had the same issue, and came here to find the answer. Thank you so much for this!
@QueenA7
@QueenA7 3 жыл бұрын
@@edgardoalvarez980 Glad it helped!
@ahmadsopandi100
@ahmadsopandi100 3 жыл бұрын
sorry sir, after i try yor tutorial, the animation is not working on android device
@toel_
@toel_ 4 жыл бұрын
Hey, I really like your videos and want to know whether you have a course or something Amazing work btw
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
I’m working on Reanimated2 course (zero to hero) which I plan to release by the end of this month-mid of October. If you’d like to get a little discount there you can become a Patreon: patreon.com/catalinmiron (there are other benefits, including access to a private repository where I’m pushing code mostly on a daily basis). Thanks you so mich for your support Apiut ✌️
@toel_
@toel_ 4 жыл бұрын
@@CatalinMironDev Nice, but I dont think reanimated2 works on expo sdk 38. Either way, can't wait to be part of your "students"
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Apiut Toel you are right and that also bothers me:( there’s work in progress for expo which I wish to happen asap). Thanks and no problem about not becoming a student yet. ✌️
@toel_
@toel_ 4 жыл бұрын
@@CatalinMironDev I meant I'll be your student irregardless because i have been having issues with reanimated v1 its complex in a way to beginners
@dannylamtoro8447
@dannylamtoro8447 4 жыл бұрын
🇮🇩 Indonesia
@zameer-haider
@zameer-haider 4 жыл бұрын
🍎😍
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
🥑 thanks Zameer ✌️
@harshdeepsaiyam570
@harshdeepsaiyam570 3 жыл бұрын
how to move it anti clock wise?
@doniaelfouly4142
@doniaelfouly4142 2 жыл бұрын
the code on snack is broken
@rp1283
@rp1283 3 жыл бұрын
useNativeDriver is only working in expo but not in react native
@AbdulRehmanSiddiquii
@AbdulRehmanSiddiquii 4 жыл бұрын
Bro i also need know how i can show also number at the end of the bar ???
@muhamadimron9785
@muhamadimron9785 4 жыл бұрын
try to Change the initial value of percentage same as max value or extract the max value then show it _data.map(t => ( {t.max} ))_
@AbdulRehmanSiddiquii
@AbdulRehmanSiddiquii 4 жыл бұрын
@@muhamadimron9785 dont get it where i have to add this can add this and push in the source ?
@axelbryancasauran5159
@axelbryancasauran5159 2 жыл бұрын
the source code is not working even updated the version and dependency...
@axelbryancasauran5159
@axelbryancasauran5159 2 жыл бұрын
i take it back it works.. question: is it possible to loop the animation? like it is circling around?
@CreativeJE
@CreativeJE 4 жыл бұрын
thanks for your tutorials but if you will explain a little more about everything which you do will help beginners understand better whats going
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
I will try my best. Can you also share some feedback? I'd like to be better at explaining stuff. Thanks!
@CreativeJE
@CreativeJE 4 жыл бұрын
@@CatalinMironDev like where you used the new Nullish coalescing operator (??) and also in the if statement. Also if you can tell why and how animations are working like why you used text input instead of normal text. I know video will be longer but I am sure it will give us a deep understanding of all of your codes. Thanks again 🙏🎉
@fernandorojo6311
@fernandorojo6311 2 жыл бұрын
Has anyone implemented this with Reanimated 2 by chance?
@CatalinMironDev
@CatalinMironDev 2 жыл бұрын
Yes, I did:) its on my Patreon. Its the same thing with Animated API you only need to useAnimatedProps
@israel333666
@israel333666 3 жыл бұрын
can you to make delivery app please with react native
@guleye
@guleye 4 жыл бұрын
Sir you didn’t add github source code
@CatalinMironDev
@CatalinMironDev 4 жыл бұрын
Added the snack for it. Thanks Murph ✌️
@jurianboots395
@jurianboots395 3 жыл бұрын
Hey man, thank you for this very clear tutorial :) However it doesn't seem to work on Android, is that right?
@Anas_Alaqeel
@Anas_Alaqeel 3 жыл бұрын
This guy is good and know what he doing, but if we talk about how he teaching or explaining things, well, explaining is bad, so only people who will understand him who those have already experience in what he doing
@pasteancalin7826
@pasteancalin7826 Жыл бұрын
The circle (stroke) looks jagged on Android
@bilelrahmouni01
@bilelrahmouni01 2 жыл бұрын
thank you
Advanced React Native FlatList animations with Animated API
36:35
Catalin Miron
Рет қаралды 40 М.
React Native Scroll Item animation effect - FlatList and Animated API
17:06
Touching Act of Kindness Brings Hope to the Homeless #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
ПРИКОЛЫ НАД БРАТОМ #shorts
00:23
Паша Осадчий
Рет қаралды 6 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 50 МЛН
SVG Animations with React Native
42:33
William Candillon
Рет қаралды 44 М.
Donut Chart | React Native | ReAnimated 2 | SVG | CeylonIQApps
18:31
10 EPIC React Native Animation Libraries
13:33
Simon Grimm
Рет қаралды 21 М.
Custom Hooks in React (Design Patterns)
12:56
Cosden Solutions
Рет қаралды 45 М.
Advanced React Native FlatList stack carousel animations at 60fps
23:48
SVG Explained in 100 Seconds
2:20
Fireship
Рет қаралды 874 М.