我似乎想不出如何使用NativeBase在vue-native上刷新列表。我知道这在react-native上是可能的,但我找不到任何关于如何在vue-native上工作的信息。有人知道怎么做吗?
发布于 2019-08-08 19:32:22
你可以这样使用它:
在<scripts>中导入
import { RefreshControl } from 'react-native';在方法中添加一个函数来刷新一些列表:
_onRefresh(){
this.refreshing = true
this.getPictures()
this.refreshing = false
},在数据中:
data() {
return {
refreshing: false
}
},在来自NativeBase的<nb-list>上方的<template>中添加:
<RefreshControl
:refreshing="refreshing"
:onRefresh="_onRefresh"
/>https://stackoverflow.com/questions/53836600
复制相似问题