mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
2cdf9694b5
Summary: The bug description can see https://github.com/facebook/react-native/issues/24688, we add `contentView` size check before center the content, because in some cases, the contentView's size not yet be calculated, in those cases, we don't adjust the `contentOffset`. cc. cpojer . [iOS] [Fixed] - Fixes ScrollView centerContent not work in some cases Pull Request resolved: https://github.com/facebook/react-native/pull/24817 Differential Revision: D15322502 Pulled By: sahrens fbshipit-source-id: e2081f13e9f2e8597a379a9db1607451ea496909