react-native-swiper-flatlist icon indicating copy to clipboard operation
react-native-swiper-flatlist copied to clipboard

Scrolling disrupted after the 12th item in vertical SwiperFlatList

Open MiteshKalal7 opened this issue 2 years ago β€’ 5 comments

I am encountering an issue with a vertical FlatList, specifically in the SwiperFlatList component. The FlatList functions properly until index 12, after which its behavior becomes erratic.

On the screen containing the FlatList, there is a BOTTOM_TAB_HEIGHT with a height of 50. The renderItem component's height is set to (deviceHeight - BOTTOM_TAB_HEIGHT).

Here is the code for the SwiperFlatList: `<View style={{ backgroundColor: "black", flex: 1, }}

<SwiperFlatList ref={scrollViewRef} vertical={true} onChangeIndex={handleChangeIndexValue} contentContainerStyle={{ backgroundColor: "black" }} data={data} renderItem={({ item, index }) => { return <Item item={item} index={index} currentIndex={currentIndex} />; }} getItemLayout={(d, i) => ({ length: deviceHeight, index: i, offset: (deviceHeight - BOTTOM_TAB_HEIGHT) * i, })} keyExtractor={(, index) => index} /> </View> `

Simulator Screenshot - iPhone 15 - 2023-11-04 at 18 29 44 Simulator Screenshot - iPhone 15 - 2023-11-04 at 18 29 54

MiteshKalal7 avatar Nov 04 '23 13:11 MiteshKalal7

Have you found the solution?

ArtyomHovhannisyann avatar Dec 28 '23 14:12 ArtyomHovhannisyann

Have you found the solution?

Nope, I ended up with full screen height to video.

MiteshKalal7 avatar Dec 28 '23 14:12 MiteshKalal7

Do you hide your bottom tab?

ArtyomHovhannisyann avatar Dec 28 '23 14:12 ArtyomHovhannisyann

@gusgard Do you have any solution?

ArtyomHovhannisyann avatar Dec 28 '23 15:12 ArtyomHovhannisyann

Do you hide your bottom tab?

Nope, it’s still there, video is being cut from that part.

MiteshKalal7 avatar Dec 28 '23 15:12 MiteshKalal7

Should be fixed in 3.2.4

gusgard avatar Apr 23 '24 03:04 gusgard