Flatlist item onPress not fired during timer's setInterval function #16751
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
I am using FlatList to implement a carousel, and I try to use timer to increase the FlatList's offset.X, and makes it auto scrolling. But my FlatList item's TouchableOpacity onPress function never fire during the timer setInterval function which increasing the FlatList's offset.X every seconds. The Item's onPress works fine without start the timer up.
May I ask is there anything wrong for my implement? How should I implement the carousel with FlatList auto scrolling and the Item can be clicked during the scrolling?
This is the code for my FlatList and ListItem:
The text was updated successfully, but these errors were encountered: