what onEndReachedThreshold really means in react-native

前端 未结 4 921
轮回少年
轮回少年 2021-02-18 13:07

from documentation:

onEndReachedThreshold number

Threshold in pixels (virtual, not physical) for calling onEndReached. so I just w

4条回答
  •  鱼传尺愫
    2021-02-18 13:41

    In 2020, onEndReachedThreshold represents the number of screen lengths you should be from the bottom before it fires the event.

    I use onEndReachedThreshold={2} to fire onEndReached when I'm two full screen lengths away.

提交回复
热议问题