search

Home  >  Q&A  >  body text

javascript - How to replace scrollview with flatlist?

Using scrollview means that each block on the page is different in length. I want to improve performance and replace it with flatlist.
Currently, all views are added to an array. How can I make flatlist order? What about loading?
I wrote the code for a long time but I still didn’t understand how to implement it

阿神阿神2760 days ago640

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-31 10:39:17

    Try rendering different components based on the attributes of itemData in renderItem?

    reply
    0
  • Cancelreply