Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DraggableFlatList 不能触发下拉刷新 #53

Open
Qdafengzi opened this issue Jan 2, 2025 · 0 comments
Open

DraggableFlatList 不能触发下拉刷新 #53

Qdafengzi opened this issue Jan 2, 2025 · 0 comments

Comments

@Qdafengzi
Copy link

Qdafengzi commented Jan 2, 2025

引入一个第三方库拖拽列表后 就不能触发下拉刷新了 ,这个要单独适配吗?主要是下拉了后不回弹。

 <PullToRefresh
    style={{flex:1}}
    refreshing ={isRefreshing}
    onRefresh={refresh}
    onLoadMore={loadMore}
    loadingMore={isLoadMore}
    noMoreData={noMoreData}
    footer={isEmpty ? <></> : undefined}
>
    <DraggableFlatList
        renderPlaceholder={ItemReaderPlaceHolder}
        dragItemOverflow={true}
        contentContainerStyle={{ flexGrow:1}}
        data={productData}
        renderItem={renderItem}
        keyExtractor={(item, index) => (item?.id ?? index).toString()}
        ListEmptyComponent={<EmptyView/>}
        onDragEnd={({ data }) => setProductData(data)}
        nestedScrollEnabled={true}
  />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant