React Native Tab View | Top Tab - Synced FlatList

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

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

  • @aeshamavani8079
    @aeshamavani8079 7 месяцев назад +1

    It helps a lot 👍🏻 want more content related react native

    • @flycoder9125
      @flycoder9125  7 месяцев назад

      Sure 👍, thank you so much 😊

  • @amannarola9280
    @amannarola9280 7 месяцев назад +1

    Its very helpful for me you are great sir.Also upload more videos related react-native

    • @flycoder9125
      @flycoder9125  7 месяцев назад

      Sure 👍, thank you so much 😊

  • @HetanshPatel-x7w
    @HetanshPatel-x7w 6 месяцев назад +3

    Good job bro

  • @Ray-sc2om
    @Ray-sc2om 29 дней назад +1

    *Edit
    Please follow the tutorial first, see if you face the issues of scroll end drag is not giving the correct index before you implement my work around.
    & Thanks for this simple multi view tab component without using other library.
    For anyone that face the issues of onScrollEndDrag the content offset x decimal value is smaller then screen width decimal, making the newIndex not correct.
    here a work around:
    onScrollEndDrag={event => {
    const offsetX = event.nativeEvent.contentOffset.x;
    const index = Math.round(offsetX / windowWidth);
    if (horizontalScrollRefHeader?.current) {
    horizontalScrollRefHeader.current.scrollToIndex({
    animated: true,
    index,
    viewPosition: 0.5,
    });
    setCurTab(index);
    }
    }}

    • @flycoder9125
      @flycoder9125  27 дней назад

      Thank you so much 🙏👌 🫡

  • @DHARMKETSAVANI-f9u
    @DHARMKETSAVANI-f9u 5 месяцев назад +1

    It helps a lot for me

  • @flydream-q8n
    @flydream-q8n 5 месяцев назад +1

    Good job bro :)

  • @dharmketsavani
    @dharmketsavani 7 месяцев назад +1

    It helps a lot for me❤ 🎉

    • @flycoder9125
      @flycoder9125  7 месяцев назад

      Sure 👍, thank you so much 😊

  • @HetanshPatel-x7w
    @HetanshPatel-x7w 6 месяцев назад +1

    Hiiiii

  • @HetanshPatel-x7w
    @HetanshPatel-x7w 6 месяцев назад +1

    This thing