79414696

Date: 2025-02-05 12:10:53
Score: 0.5
Natty:
Report link

This works with better animation

const flatListRef = useRef<FlatList>(null);

// Scroll to the end after updating messages
setTimeout(() => {
  flatListRef.current?.scrollToEnd({animated: true});
}, 100); // Small delay to ensure the list is updated
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ajibola Bello