feat:add OnRefresh Callback for Android

This commit is contained in:
pengfei.zhou
2019-11-26 13:39:04 +08:00
parent 3dfa6c9770
commit 84b9ec0f22
2 changed files with 14 additions and 2 deletions

View File

@@ -7,6 +7,12 @@ class RefreshableDemo extends Panel {
let refreshImage: Image
let refreshView = refreshable({
layoutConfig: layoutConfig().atmost(),
onRefresh: () => {
log('onRefresh')
setTimeout(() => {
refreshView.setRefreshing(context, false)
}, 5000)
},
header: pullable(context,
stack([
image({