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

StickyHeaderFlatList Not Show Fully Refresh Control When Has Header #408

Open
2 tasks done
hoangtam101 opened this issue Aug 10, 2023 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@hoangtam101
Copy link

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}
/>

@hoangtam101 hoangtam101 added the bug Something isn't working label Aug 10, 2023
@hoangtam101
Copy link
Author

Hi, any update on this issue?
Thanks,

@Paul12pp
Copy link

x2
Hi, any update on this issue?
Thanks,

@maximesenger
Copy link

Same issue here. It is because the refresh indicator is under the renderTabs. The way is fixed it is by doing this :

<RefreshControl
            style={{ zIndex: 1 }}
            title="Refreshing..."
            colors={[color.brandPrimary]}
            progressViewOffset={175}
            refreshing={isLoading}
            onRefresh={refreshPublicStores}
/>

Set your progressViewOffset depending on the height of your tabs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants