React Native FlatList Scroll to Offset

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025

Комментарии •

  • @Iwillownyouandbehappy
    @Iwillownyouandbehappy 5 лет назад +5

    Love you for this React Native series

  • @QSeaO
    @QSeaO 3 года назад

    Hey Ben this tutorial is very helpful. On spot resolved my questions around

  • @AllenDelon-t4v
    @AllenDelon-t4v 19 дней назад

    Thanks Ben!

  • @11apollonian
    @11apollonian 5 лет назад +2

    Thanks Ben!
    Also looking forward to the WoW Builds project.

    • @bawad
      @bawad  5 лет назад

      I'm not going to make a tutorial building the entire thing, but I can show how to implement different parts of it. What things would you like to see?

  • @jxdarkangel1626
    @jxdarkangel1626 4 года назад

    Thank you very much, for an excellent tutorial

  • @HeinekenLasse
    @HeinekenLasse 5 лет назад +1

    Great quality content bro

    • @bawad
      @bawad  5 лет назад

      Thanks :)

  • @gixxerblade
    @gixxerblade 4 года назад

    Thank you!

  • @pannihto7588
    @pannihto7588 4 года назад +1

    Does this work with SectionList to cause I couldn't get it work it keeps saying scrollToOffset is not a function

  • @SepSol75
    @SepSol75 4 года назад +1

    2:36 - What if instead of scrolling to the end, I wanted to scroll to the start of the FlatList component? What is its syntax?

    • @mannyquintero2190
      @mannyquintero2190 4 года назад

      it would be something like: this.flatlistRef.current.scrollToOffset({offset: 0})

    • @SepSol75
      @SepSol75 4 года назад

      @@mannyquintero2190 Thanks a lot :)

  • @5saikats
    @5saikats 4 года назад

    This example is not working for me, not even the normal scroll properly

  • @sahilshikalgar4158
    @sahilshikalgar4158 5 лет назад

    Hi bro, How can I set offset after loading the flat list component? I'm getting an error like 0 elements are present if I do it in ComponentDidMount

    • @bawad
      @bawad  5 лет назад

      maybe {
      // check e to see height of flatlist and scroll to offset
      }} />

  • @himanshusharma5582
    @himanshusharma5582 5 лет назад

    Getting error null is not object (evaluating 'this._scrollView.scrollTo')
    Any idea about this error

    • @bawad
      @bawad  5 лет назад

      so is this._scrollView null?
      are you sure the ref is being set?

    • @himanshusharma5582
      @himanshusharma5582 5 лет назад

      @@bawad ref = {ref=> this.listView = ref} I set up in this way I get this error when I press the back button normally it is working quite well but when I press back and get back to another page or request I got this error

  • @thuanhoangnhat2350
    @thuanhoangnhat2350 5 лет назад

    Hello Ben, do you know the issue github.com/facebook/react-native/issues/25239 , or can you guide flatlist scroll bidirectional please

    • @bawad
      @bawad  5 лет назад

      haven't tried doing that before

  • @yoyoemojisapps6414
    @yoyoemojisapps6414 4 года назад

    ben where are the jokes

  • @sabeerali1570
    @sabeerali1570 3 года назад

    outdated