Home  >  Q&A  >  body text

javascript - How to customize the flatlist drop-down component style?

1. First, let me talk about the effect I want to achieve. Pull down a picture like JD.com on mobile phones, and jump to a new page after letting go.

2. But Flatlist has a default drop-down event

onRefresh
如果设置了此选项,则会在列表头部添加一个标准的RefreshControl控件,以便实现“下拉刷新”的功能。

I don’t see how to change the head control in the document. Android defaults to a black circular refresh component, and if you add a head directly, it will be displayed by default. I don’t know how to hide it for the time being.
So I want to ask how to achieve the function I want

PHP中文网PHP中文网2666 days ago1248

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-06-08 11:04:39

    Solved by react-native-pull. .

    reply
    0
  • Cancelreply