Just wanted to hop back in and say thanks. I was just watching this video the other week, and today, I ran into a situation where I had to add a static element to my scrollview and I suddenly remembered your neat little trick of 'cancelling out' the translation during scroll. Worked like a charm, in less than a minute. Absolute lifesaver trick I would never, ever have come up with if it wasn't for your video. Keep 'm coming!
The content on this channel is pure gold!! The only thing though is that you don't give a clear explanation on why every decision was made and what each value actually means. But then it's not on you to explain every concept, that's were being an autodidact comes handy. Either way, love the content
Line 35 should be "outputRange: [0, -index * (CARD_HEIGHT + 2 * MARGIN)]" right ? With a bigger list, margins add up and you would see cards disappearing before hitting the top of the screen
If anyone is following along to add this to their own project, a good way to get the exact height of your element is to use the onLayout props, which will automatically calculate the height of your component. const [itemHeight, setItemHeight] = useState(0); const onLayout = (e) => { setItemHeight(e.nativeEvent.layout.height); }; ...content
Followup: Ensure to add the margin to this value if you have one on your component. const [itemHeight, setItemHeight] = useState(0); .... ... .. . { setItemHeight(e.nativeEvent.layout.height + MARGIN); }} style={[ styles.listing, { opacity, transform: [{ translateY }, { scale }] }, ]} >
Great as always! back to the basics, will be great something like this with the "hide/show header on scroll" on android is kinda tricky and almost all examples are outdated
hello Sir. There is one problem with animations. if I have a list of dynamic items it depends on paggination, then the animation is not good.Initially it's working fine but after some item it somewhat lower than the top. experience some blank space on the top of the screen.
Great great great :D I'm going to implement that immediatly (in left to right..) !! But do you think it can work with the snapToInterval prop of the scrollview ?
Excellent tutorial, thank you! Also love your accent haha, you sound more French than Swiss to me but I'm Australian so am hardly qualified to tell the difference. :p
Great observation. A large part of Beautiful Switzerland speaks French (~30%). They also speak German (~60%). William was likely raised in French speaking part of the region. Cheers!
@@wcandillon thanks for the prompt response. I have gone through and used varying the height of card. Its fine but some glitches as my card is of variable height, anyway to handle that?
you don't provide starter files to follow through the tutorial so in my case I couldn't follow through, I tried to run your source code but is filled with errors in my text editor and versioning problems
Hello, I need a flat list with optimization for the contact list. could you create a video for this? I didn't find a single thing on this. I have tried all the given solutions on the internet and perform all the optimization.
hello sir, i have two doubts , ,instead of typescript i am using js, and since u have used in walletCard.tsx -> y as Animated.Value in interface and i have taken the y state as props from wallet.tsx -> like this -> const[y, setY ] =useState(new Animated.Value(0)); and using this as as prop in walletCardd.tsx and the other doubt is : how i should used the interface 'index: number' in my interpolate -> inputRange: [0, 0.00001 + index * CARD_HEIGHT], i have taken 'index' as prop from previous component. Please help me
Its perfect. Atleast not that complicated as like your other videos :) ... btw, do you planning to make this instagram textbox background effect in direct messages that i sent to you ? is it possible in react native?
Awesome video! May I ask you from where I can get such a beautiful card background style. Appreciated It if you can tell me how you made them or what this kind of design called.
Hello William. I really enjoy your tutorials you are really good at coding. I got a question do you have the same tutorial in javaScript as you are using typeScript it vary a bit, I tried to create the same animation in javaScript but I struggled a bit.. Thank you again and hope you are having a great day!!!
Hey! Noob question. But how would I go about navigating to another screen when clicking a card. My idea is to have different navigation pages for each card
02:03 "We had to use the vanilla animated API from react native because here using reanimated that on Android we couldn't get frame by frame full control over the way the element moves"
Hello, I need a flat list with optimization for the contact list. could you create a video for this? I didn't find a single thing on this. I have tried all the given solutions on the internet and perform all the optimization.
Please do more of these tutorials with the animated api.
Message received. Will try to showcase other examples where it might make sense.
Just wanted to hop back in and say thanks. I was just watching this video the other week, and today, I ran into a situation where I had to add a static element to my scrollview and I suddenly remembered your neat little trick of 'cancelling out' the translation during scroll. Worked like a charm, in less than a minute. Absolute lifesaver trick I would never, ever have come up with if it wasn't for your video. Keep 'm coming!
The content on this channel is pure gold!!
The only thing though is that you don't give a clear explanation on why every decision was made and what each value actually means.
But then it's not on you to explain every concept, that's were being an autodidact comes handy.
Either way, love the content
Line 35 should be "outputRange: [0, -index * (CARD_HEIGHT + 2 * MARGIN)]" right ? With a bigger list, margins add up and you would see cards disappearing before hitting the top of the screen
If anyone is following along to add this to their own project, a good way to get the exact height of your element is to use the onLayout props, which will automatically calculate the height of your component.
const [itemHeight, setItemHeight] = useState(0);
const onLayout = (e) => {
setItemHeight(e.nativeEvent.layout.height);
};
...content
Followup: Ensure to add the margin to this value if you have one on your component.
const [itemHeight, setItemHeight] = useState(0);
....
...
..
.
{
setItemHeight(e.nativeEvent.layout.height + MARGIN);
}}
style={[
styles.listing,
{ opacity, transform: [{ translateY }, { scale }] },
]}
>
Just wow, you motivated me more for animations after this, thanks🙏
so jhonny sins is also a developer i am impressed
French dev
AHAHAHAHAHAHAHA
I already fell in love with your accent
So adorable french style english
It's the end of June 2020 already and I'm all gearing up for React Native animations and transitions 😇
Great as always! back to the basics, will be great something like this with the "hide/show header on scroll" on android is kinda tricky and almost all examples are outdated
That's a great idea.
Looks awesome, thanks for your example!
Really cool and fun to watch video. It's a great animation to copy. Thank you !!
Can you update and explain the same animation for a two column flat list ?
Really interesting as usual ! Congrats
Nice, but I guess it only works of you have a fixed card height.
Idea for another tutorial: Pinterests Masonry Image Layout
You are insane. Please more with Animated api
Thanks man, let me know if you have any suggestion
hello Sir. There is one problem with animations. if I have a list of dynamic items it depends on paggination, then the animation is not good.Initially it's working fine but after some item it somewhat lower than the top. experience some blank space on the top of the screen.
I love the simplest one
Wow can't wait to try it out
Because of COVID johnny also started working from home
Nice tutorial mate, and please tell us which them you're using for VsCode, that's a delicious purple color theme. I want the same.
Coding starts at 3:57
Thank you. keep up your good work
where is the first lesson for animations is there any zero to hero playlist
Great great great :D
I'm going to implement that immediatly (in left to right..) !! But do you think it can work with the snapToInterval prop of the scrollview ?
Yes it can (he said it in the video) but i've also implemented it.
Excellent tutorial, thank you! Also love your accent haha, you sound more French than Swiss to me but I'm Australian so am hardly qualified to tell the difference. :p
Great observation. A large part of Beautiful Switzerland speaks French (~30%). They also speak German (~60%). William was likely raised in French speaking part of the region. Cheers!
how to animate remove item? After remove item, the item below it should slide slowly up? can you make video on that
?
I have a video on that at ruclips.net/video/1d8a_NZ9l1E/видео.html
@@wcandillon thanks for the prompt response. I have gone through and used varying the height of card. Its fine but some glitches as my card is of variable height, anyway to handle that?
Nice! Would be really interested to hear why reanimated wasn't suitable for this?
On Android, the frame by frame syncing of the scrollview animation value is not precise enough with reanimated. It might be fixed soon in Reanimated
@@wcandillon Is this answer updated?
Can you do the profile twitter's animated header with tabs?
I'm gonna look into it.
you don't provide starter files to follow through the tutorial so in my case I couldn't follow through, I tried to run your source code but is filled with errors in my text editor and versioning problems
You create library react native reanimated?
Hello, I need a flat list with optimization for the contact list. could you create a video for this? I didn't find a single thing on this. I have tried all the given solutions on the internet and perform all the optimization.
Great video, thank you!
hello sir, i have two doubts , ,instead of typescript i am using js, and since u have used in walletCard.tsx -> y as Animated.Value in interface and i have taken the y state as props from wallet.tsx -> like this -> const[y, setY ] =useState(new Animated.Value(0)); and using this as as prop in walletCardd.tsx and the other doubt is : how i should used the interface 'index: number' in my interpolate -> inputRange: [0, 0.00001 + index * CARD_HEIGHT], i have taken 'index' as prop from previous component. Please help me
if the Flatlist is horizontal we can simply change y to x?
Will there be a new series of these videos or more examples, but with Reanimated 2?
simply awesome !!
Its perfect. Atleast not that complicated as like your other videos :) ... btw, do you planning to make this instagram textbox background effect in direct messages that i sent to you ? is it possible in react native?
Thanks man! I didn't get a change to look into it yet.
@@wcandillon thank you. Waiting with patience for it :)
My head: FlatList "why are you so handsome?" :v ♥️♥️
Great tutorial!
How do you make it scroll horizontally?
Hi Wonderful Video. Is there a .js version of this ? Or must it be .tsx
amazing explanation and accent 🙂
Can you do a tutorial on scratch card animation please ? It can help us with gesture + animation both.
What is your opinion of react spring with react native?
really cool !!! Thank you
hi,what recording software were you using? your image on the bottom left,how did you make it? thank you so much
Awesome video!
May I ask you from where I can get such a beautiful card background style. Appreciated It if you can tell me how you made them or what this kind of design called.
Hello William.
I really enjoy your tutorials you are really good at coding. I got a question do you have the same tutorial in javaScript as you are using typeScript it vary a bit, I tried to create the same animation in javaScript but I struggled a bit..
Thank you again and hope you are having a great day!!!
u got a solution, i am stuck in the same.
You are just amazing ❤️❤️❤️❤️
what to use as an interface y and index in javascript ?
Hey! Noob question. But how would I go about navigating to another screen when clicking a card. My idea is to have different navigation pages for each card
Hey, still looking forward to reply😊
stack navigator component in your app.js file
Amazing
Amazing as always :)
really love your accent :) , Do you speak the Romansh too ?
what color theme do you use for vscode?
Palenight Operator
im trying to do this with a horizintal flatlist but things got missed up can anyone help ?
its fantastic
Awesome!
wondering why can't you use reanimated ?
there is a tutorial of how use expo, im trying to follow the tutorials with the boilerplates pero doesnt work, thanks a lot for this.
does this video help: ruclips.net/video/MqRnpUC4czs/видео.html
WOW THANKS ♥
Intéressant le tuto français ça ce vois a l'accent ? 😊
nice one. thank you
Thank you for your continuous support Payman 🙌🏻
Thank you for your continuous support Payman 🙌🏻
Perfect
glad you liked it :)
You don't put the same code in GitHub . Sad
Salut est-ce que tu pourrais faire ses vidéos en Français ?
Malheureusement ce n'est pas encore prévu Matthèo. J'apprends l'allemand en ce moment, je devrai essayer de faire une vidéo en allemand 😅
@@wcandillon D'accord pas de soucis, en tout cas merci pour ces vidéos de qualités !
hey guys, what is up?
you're awesome
DnD flatlist please
great
Super 👌👌👌👌
Great!
One more student.
What's you theme?
Mon ami peux-tu encourager un de tes confrères de faire casiment le meme travail que toi, mais avec Flutter.
How to draw maps malls
Nice video! You have a french accent, isn’t it?
Oh le bon accent fr
why did you use Animated from React instead of reanimated?
02:03 "We had to use the vanilla animated API from react native because here using reanimated that on Android we couldn't get frame by frame full control over the way the element moves"
what is your brain made of? just wow!
Tu peux le faire en français pour moi haha l'accent ta trompé !
calvo
I love ur commentary but it lacks explanation.
Vous avez une accent française 😄
Ton Anglais est terrible !! Mdr !! ça c'est lorsqu'un français cherche à parler le chinois !!
Second!
This is my first "second" on my channel, I love it :)
Stp parle en français c'est mieux wallah
Flutter is better than react native.
OK.
Modi is gay.
Hello, I need a flat list with optimization for the contact list. could you create a video for this? I didn't find a single thing on this. I have tried all the given solutions on the internet and perform all the optimization.