mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e5ba6ab7b4
Summary: This diff fixed a NPE in horizontal scroll view when calling scrollToEnd API in side effect. The problem here is we may trigger side-effects before the required view got mounted for performance reasons. We've been fixing this with retry logic on those side-effects and we've already done this in vertical scroll view. This is to fix on the horizontal scroll as well. Changelog: [Android][Fixed] - Fixed HorizontalScrollView API scrollToEnd causing NPE in side-effects. Reviewed By: lunaleaps, JoshuaGross Differential Revision: D37571847 fbshipit-source-id: 0a4dc38381008350fd09908aa3ebb64e3e65a424