Quantcast
Channel: Active questions tagged header - Stack Overflow
Viewing all articles
Browse latest Browse all 700

How to prevent React Native FlatList with TextInput inside ListHeaderComponent scroll to the top of the list on focus

$
0
0

I have a textinput inside listHeaderComponent with stickyHeaderIndices={[0]} which keeps it at top of the list, but for some reason its scrolls to the top of the flatlist onFocus of the textinput, how can i prevent this from happening ?

snack example androidsnack

it isn't supposed to scroll to the top of the list onFocus of the input


Viewing all articles
Browse latest Browse all 700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>