Kévin Perreau
Kévin Perreau

Reputation: 21

FlatList inside FlatList scrolling problem

I want to put a FlatList inside another one, but the child flatlist not scrolling.

I tried to convert the child FlatList to ScrollView, put the props scrollEnabled to false to the parent FlatList and both not work.

Here is a code example of what I want to do: https://snack.expo.io/HJ6d97gNH

I expect to scroll inside both flatlist, not only one.

Upvotes: 1

Views: 1026

Answers (2)

Kapil Avaiya
Kapil Avaiya

Reputation: 148

use nestedScrollEnabled in inner Flatlist for enabling the scrolling activity

Upvotes: 2

MoKhajavi75
MoKhajavi75

Reputation: 2702

You can use the nestedScrollEnabled prop but I would recommend using a <SectionList> since this is somehow buggy!

Upvotes: 1

Related Questions