GeekyAnts / NativeBase

Mobile-first, accessible components for React Native & Web to build consistent UI across Android, iOS and Web.
https://nativebase.io/
MIT License
20.2k stars 2.39k forks source link

[Android] React Navigation Native Stack + Nativebase Flatlist #3952

Open exneval opened 3 years ago

exneval commented 3 years ago

Describe the bug Weird behavior with android FlatList when RefreshControl is enabled, as you go back from FlatList stack to the previous stack, a refresh icon showed up above. Tested without nativebase, there's no such a behavior.

To Reproduce Steps to reproduce the behaviour:

  1. Use React Navigation Native Stack
  2. Use Nativebase
  3. Implement a FlatList with refresh control enabled
  4. The weird behavior happened

Expected behaviour There's no refresh icon showed up

CodeSandBox/Snack link snack.

Need help @intergalacticspacehighway

exneval commented 3 years ago

After some investigation, this behavior happened only if there's a component above the FlatList that has RefreshControl enabled, if I move that component into ListHeaderComponent prop, everything looks normal

But still I want my component above the FlatList to have fixed position, because If move it to ListHeaderComponent prop, the component will also be moved with scrolling

Updated: I can use stickyHeaderIndices to make component in ListHeaderComponent have a fixed position (sticky) But that's it, I don't know if you guys want to fix this because it's just an alternative way to avoid this happened, so I'll let this issue open

Viraj-10 commented 2 years ago

Hi @exneval, Thanks for reporting this issue. We will look into it.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

exneval commented 2 years ago

Still no news from @Viraj-10

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.