React Native Flash List Basic Setup

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

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

  • @JohanHolm-k6h
    @JohanHolm-k6h ปีที่แล้ว +4

    The estimatedItemSize is not the item array size but rather the estimated "pixel" height of one item.

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

      Oh my bad. I thought it was array size I'll pin this comment just so other devs see

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

    Can you use pagination with this? Like if I want to make an infinite loading on scroll.

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

    I get huge blank spaces when scrolling up/down, same with RecyclerListView library

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

      Oh uhhh there should be a prop to stop that but I'm not too sure what that was

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

      for regular FlatList prop is called windowsSize

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

      @@maXXik1337 I tried every prop in the docs, the library doesn't work well with logic heavy components. Huge white spaces whilst scrolling makes it unusable

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

      @@bengal988 Ye, optimizing heavy components is very tricky and FlatList performance is big disadvantage of RN for sure. You can try to play around with memo() or useMemo() but it is complicated.

    • @abrar9596
      @abrar9596 9 หลายเดือนก่อน

      ​@@bengal988are you able to resolve this issue?

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

    have you tried it on android ?

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

      Yup so in the beginning of the video I have two emulators the emulator on the right is Android

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

      @@arslan99 i am getting this error - autolayoutview was not found in the UI manager. On diving deep, i found solution 'pod install' for iOS, but no solution for Android. This error comes when the library that you are using requires native dependencies that have not been linked to your react native project.
      Any solution you have ?

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

      @@Krishnasaini this link should help
      github.com/Shopify/flash-list/issues/588#issuecomment-1433934828

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

      Hey i am new to development field. Is this link suggesting to change kotlin version. If yes, how can I do that. I am suing react native

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

      @@Krishnasaini yes so you'd have to update gradle in your Android folder and I agree I'd sue them too 🤣🤣