I have the following FlatList Component in my app but even when I set horizontal prop to false it still let me move the screen horizontally when I'm scrolling.
<FlatList
data={props.data}
renderItem={({ item }) => props.renderItem(item)}
horizontal={false}
contentContainerStyle={{
flex: 1,
justifyContent: "center",
alignItems: "center",
}}
/>
As of my understanding, you want to show a list of items horizontally but it should not scroll the list.
If it is the case then in flatlist use:
horizontal={true}
scrollEnabled={false}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With