#3 Hide Header on scroll up and visible on scroll down animation in React Native

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 67

  • @ASMRAaronLeupp
    @ASMRAaronLeupp 4 ปีที่แล้ว +4

    You’re a gift to those around you.

  • @HolyQuran0992
    @HolyQuran0992 2 ปีที่แล้ว +1

    Great! If you go to all the way top it will the scroll part is hiding under header

  • @brunosgaming9574
    @brunosgaming9574 2 ปีที่แล้ว +1

    Good explanation dude.

  • @nguyennhat9516
    @nguyennhat9516 4 ปีที่แล้ว +1

    i'm from Viet Nam. your channel is the best!

  • @umaralfaruq1304
    @umaralfaruq1304 3 ปีที่แล้ว

    I am from Indonesia. Thanks for your tutorials
    i waiting for next great videos

  • @Shubh_1QR
    @Shubh_1QR 4 ปีที่แล้ว +1

    Dude! your videos are very valuable to us... Thanks........

  • @newtonsazzad748
    @newtonsazzad748 ปีที่แล้ว

    Thanks a lot. did not know about this diffClamp function.

  • @LindelaniKgothatsoSodi
    @LindelaniKgothatsoSodi 4 ปีที่แล้ว +1

    Thanks, It is simple and straight forward

  • @arwysyah2400
    @arwysyah2400 4 ปีที่แล้ว +3

    I can hide and show the header but textinput can press when position absolute,do you know how to solve it?

  • @matkomilic201
    @matkomilic201 4 ปีที่แล้ว

    brilliant work. i watched many vids on this, all were 20 times longer and all didnt work thank u.

  • @dehumanizer668
    @dehumanizer668 4 ปีที่แล้ว +4

    Exactly what I wanted. Thanks!!

  • @matkomilic201
    @matkomilic201 4 ปีที่แล้ว +2

    if you guys are getting error pls use this: const scrollY = new Animated.Value(0);
    const diffClamp = Animated.diffClamp(scrollY, 0, 45);
    const translateY = Animated.interpolate(diffClamp, {
    inputRange: [0, 45],
    outputRange: [0, -45],
    });

    • @anazi
      @anazi 2 ปีที่แล้ว

      thanks

    • @Brankobereki
      @Brankobereki ปีที่แล้ว

      cool but, why it showing interpolate is not a function?

  • @arpankkr
    @arpankkr 4 ปีที่แล้ว

    Nice video really helpful in clearing my concepts

  • @armindervic9497
    @armindervic9497 3 ปีที่แล้ว

    Thanks man, this is very helpful!

  • @kalinakibrandon
    @kalinakibrandon 3 ปีที่แล้ว

    Best video ever seen thanks alot!!!!

  • @riorafe
    @riorafe 4 ปีที่แล้ว

    Thankyou so much sir!! Works perfectly on my company app

  • @afj_95
    @afj_95 3 ปีที่แล้ว +2

    Thank you my friend for this tutorial you saved my life.
    But i have a question how to show the full height of first item in the flatList ? it's hidden behind the header and if i added marginTop to the flatList i still have an empty space on top of screen ???

    • @amitdhaterwal8395
      @amitdhaterwal8395 3 ปีที่แล้ว +2

      you can give a header to the list ( ListHeaderComponent={} to flatlist) with a height equals to 45(in this case). This is not a good solution but it will work in your case, if you got a better solution please share it with me.

    • @afj_95
      @afj_95 3 ปีที่แล้ว

      @@amitdhaterwal8395 Thank you today i tried your solve 😂 it worked perfectly, but why this is not a good solution ?

    • @amitdhaterwal8395
      @amitdhaterwal8395 3 ปีที่แล้ว +1

      @@afj_95 Glad it worked for you. its not good solution as we are adding unnecessary header, its should be done using animation or (i don't know). I have read some companies used this approach, but it should have a proper way. Imagine we have 10's of these kind of situation, then we will stuck with adding 10's dummy code. 😃

    • @afj_95
      @afj_95 3 ปีที่แล้ว

      @@amitdhaterwal8395 It's true, I saw a video for someone adding paddingTop to the ScrollView not FlatList, I tried it on the FlatList but i got hidden items in the bottom and i tried to add ScrollView i got a warning telling me Animated.event should have 2 elements

  • @nakidm
    @nakidm 3 ปีที่แล้ว +1

    hey nice video can u make one where u can add and materialTopTabs like wzzp thanks.

  • @jervi_sir
    @jervi_sir ปีที่แล้ว

    thank you, How to do this with multiple Flatlist, m having a case where m using tab top navigation, each tab is a flatlist, and I need to collapse header when even i scroll in any tab

  • @rushclintakam7621
    @rushclintakam7621 2 ปีที่แล้ว

    Thank U for this tutorial, it help me

  • @wilsonlopez395
    @wilsonlopez395 3 ปีที่แล้ว

    Great man , thanks , thats just what i need!!

  • @chndraja
    @chndraja 4 ปีที่แล้ว

    Thank you... for this video.. it helped 💖👍

  • @mujahidali8691
    @mujahidali8691 3 หลายเดือนก่อน

    It is not working for down scroll behaviour. Because when I am slowly scrolling downward the header is flickering and coming twice

  • @LuanaFerreira-bq9xh
    @LuanaFerreira-bq9xh 3 ปีที่แล้ว

    Thank you!! this helped me a lot

  • @gabrielrojonovais
    @gabrielrojonovais 8 หลายเดือนก่อน

    helped me a lot. thanks

  • @someone-pv9fo
    @someone-pv9fo 6 หลายเดือนก่อน

    Big Thanks buddy

  • @nppull2105
    @nppull2105 3 ปีที่แล้ว

    Great !!! 💖💖💖

  • @duytoan4985
    @duytoan4985 6 หลายเดือนก่อน

    Thank u for video

  • @duyhuynh9587
    @duyhuynh9587 4 ปีที่แล้ว

    Thank you. This helps me a lot! :D

  • @programingproject2057
    @programingproject2057 4 ปีที่แล้ว

    Awesome videos

  • @KaranKamdar1MW
    @KaranKamdar1MW 3 ปีที่แล้ว

    Hi I am trying to implement this with the SafeAreaView from react-navigation-safeareaview which wraps my header. But the SafeAreaView remains on top. How to do this. Can you give an example?

  • @cao2106
    @cao2106 ปีที่แล้ว

    I tried and succeeded. However, there is an error that I don't know how to fix. That is when scrolling to the top of the page, a bouncing phenomenon appears, so it is mistakenly thought that it has been scrolled down a little, causing the header to be hidden. We can fix it with bounces={false} for ScrollView, but I want to keep it "true". Please help me find another solution, thank you

  • @DesignedByLeXeLofficial
    @DesignedByLeXeLofficial 3 ปีที่แล้ว

    Why is my flatlist behind the toolbar when im fully on top?!!!
    Can someone help me?

  • @WesleyGomes-re7zf
    @WesleyGomes-re7zf 11 หลายเดือนก่อน

    Thanks alot man...

  • @gugildak12
    @gugildak12 4 ปีที่แล้ว

    Thanks, thats what i m searching for, mister.

  • @glowingsun6437
    @glowingsun6437 4 ปีที่แล้ว

    when i position the animated view then TouchableOpacity and Text Input are note working

  • @arwysyah2400
    @arwysyah2400 4 ปีที่แล้ว

    Can you make a video to hide bottom navigation when scrolling?

  • @Brankobereki
    @Brankobereki ปีที่แล้ว

    anyone have issue when trying scroll up? I follow the tutorial and I did it for hide when scroll down, but it doesn't happen when scroll up

  • @satyaranjannayak1361
    @satyaranjannayak1361 3 ปีที่แล้ว

    Hi bro I need a help.
    I need to nest a sectionlist insidr another sectionlist. Whenever I use scrollToLocation I get error saying this._scrollRef is not a function.
    Please give some suggestion.
    Basically I need a scrollable header with tabs having name as of section header and should stick to top even if ListHeaderComponent be in its top.

  • @stanlymedjo3338
    @stanlymedjo3338 4 ปีที่แล้ว

    please i will live to do the reverse i.e header is at display none, when i scroll down is appears when i scroll up it disappears, please can you help ??

  • @amitshrestha6833
    @amitshrestha6833 4 หลายเดือนก่อน

    it's not working for the downscroll behaviour

  • @sandeshbirwadkar2384
    @sandeshbirwadkar2384 4 ปีที่แล้ว

    Nice tutorials!

  • @pratikbingewar3925
    @pratikbingewar3925 4 ปีที่แล้ว

    Hi Mukesh, I am trying an error regarding react native from 2 days. I am following your React native mongo db express and node.js tutorial.
    Whenever I try to open my react app in the android studio I get this error.
    Caused by: groovy.lang.MissingPropertyException: No such property: applicationVariants for class: java.lang.String
    Please let me know if you have any solution.

  • @prabhandpardeep
    @prabhandpardeep ปีที่แล้ว

    but if you scroll to top, the first card is hidden by the header

    • @sabirali.836
      @sabirali.836 ปีที่แล้ว

      Exactly same problem? if you found tell me

    • @sabirali.836
      @sabirali.836 ปีที่แล้ว

      I got it

    • @Rkofficials2187
      @Rkofficials2187 11 หลายเดือนก่อน

      how
      @@sabirali.836

    • @simpleguy2020
      @simpleguy2020 6 หลายเดือนก่อน

      What did you do

  • @enhanceyourknowledge9892
    @enhanceyourknowledge9892 3 ปีที่แล้ว

    after the header is set to the absolute top part of scroll view content is getting hidden is there any solution?

    • @guilleclara2640
      @guilleclara2640 ปีที่แล้ว

      Only change the scrollY value if the offset is above 0

  • @dndeveloper
    @dndeveloper 4 ปีที่แล้ว

    You should explain every property or methods you are writing based on the topic you are trying to explain for better experience, We are here to understand what it actually does.. Anyway, I would love to see this improvement. rest was good work

  • @123daz123daz
    @123daz123daz 2 ปีที่แล้ว

    Thanks!!!

  • @htsscreatorshtsscreators7674
    @htsscreatorshtsscreators7674 4 ปีที่แล้ว

    Awesomr

  • @NaveenKumar-td4hw
    @NaveenKumar-td4hw 4 ปีที่แล้ว

    Thanks bro...

    • @thealchemist8212
      @thealchemist8212 4 ปีที่แล้ว

      Bro, is this a website of mobile application..

  • @onuryldrm1840
    @onuryldrm1840 4 ปีที่แล้ว

    Thnx brooooo

  • @raievepic9967
    @raievepic9967 4 ปีที่แล้ว

    Ty

  • @umaralfaruq1304
    @umaralfaruq1304 3 ปีที่แล้ว

    clean code please