Skip to content

StickyHeaderFlatList Not Show Fully Refresh Control When Has Header #408

@blackknight101

Description

@blackknight101

Environment

Library version: 1.1.1
OS version: iPhone 11, iOS 16.6

Affected platforms

  • Android
  • iOS

Current behavior

When I pull down to make pull refresh visible, then I release the touch.
The animation of the pull to refresh control behind the Header.

Expected behavior

The pull to refresh control should be visible and bottom of the header

Reproduction

const [isRefresh, setRefresh] = useState(false);

const handleRefresh = useCallback(async () => {
setRefresh(true);
}, []);

<StickyHeaderFlatList
numColumns={3}
ref={flatListRef}
data={data}
renderHeader={() =>

}
refreshing={isRefresh}
onRefresh={handleRefresh}
renderTabs={() => (

)}
renderItem={({ item }) => (

)}
keyExtractor={(item: { name: string }) => item.name}
onEndReached={loadMoreData}
scrollEventThrottle={16}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions