在React Native中使用ScrollView进行RefreshControl

时间:2019-01-02 08:55:00

标签: android react-native uirefreshcontrol

我正在React Native中将RefreshControl与ScrollView一起使用

<ScrollView
  refreshControl={
    <RefreshControl
      refreshing={refreshing}
      onRefresh={this.onRefresh}
    />
  }
>
...content...
</ScrollView>

我在Android上对其进行了测试,并注意到当我完全按下并释放通过屏幕时,onRefresh不会触发...这就像是如果没有看到释放事件,则不会触发

相反,我确实看到了微调器,但它卡住了,什么也没做

还有其他人经历过吗?

0 个答案:

没有答案
相关问题