-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Component: FlatListRan CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Description
I need to scroll to the end of FlatList after adding of new list item (like a chat).
So I change state with new message and then use:
this.setState({messages});
this.messagesList.scrollToEnd({animated: true});
It woks only if I add some 'magic' setTimeout (200ms).
It there any way to detect that new message is added and i can call scrollToEnd?
Metadata
Metadata
Assignees
Labels
Component: FlatListRan CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.