Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29606

Horizontal FlatList inside ScrollView is not scrolling

$
0
0

I have a screen with many horizontal FlatLists inside a ScrollView, the structure is likes this:

<ScrollView><View><FlatList horizontal={true} .../></View><View><FlatList horizontal={true} .../></View><View><FlatList horizontal={true} .../></View></ScrollView>

Horizontal scrolling on each FlatList sometimes work, but most of the times happens a swipe to the next screen:

gif

Am using react native 0.61.2, react-navigation 4.0.10. Previously on react native 0.60.x works good. It only happens on android.

I already tried:

  • put nestedScrollEnabled={true} on <ScrollView>
  • put ScrollView inside a <View> with flex:1
  • put nestedScrollEnabled={true} on <ScrollView> and on each FlatList

but it's not working, What more else can I do? Thanks in advance


Viewing all articles
Browse latest Browse all 29606

Trending Articles



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