MM-36588 rebind the correct post list to the native view (#5472)

This commit is contained in:
Elias Nahum 2021-06-21 12:16:27 -04:00 committed by GitHub
parent 794a056028
commit 683c6f5df7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ export default class PostDraft extends PureComponent {
};
updateNativeScrollView = (scrollViewNativeID) => {
if (this.keyboardTracker?.current) {
if (this.keyboardTracker?.current && this.props.scrollViewNativeID === scrollViewNativeID) {
const resetScrollView = requestAnimationFrame(() => {
this.keyboardTracker.current.resetScrollView(scrollViewNativeID);
cancelAnimationFrame(resetScrollView);