Remove incorrect assert from ScrollViewShadowNode

Summary:
Changelog: [internal]

The assumption was wrong. There can be more than one view on iOS in ScrollView. The other view is pull the refresh component.

Reviewed By: mdvacca

Differential Revision: D26880403

fbshipit-source-id: 69fb1668b5ee7d5f4a4ab3c89222587689c10591
This commit is contained in:
Samuel Susla 2021-03-08 01:59:31 -08:00 коммит произвёл Facebook GitHub Bot
Родитель b84ae3875c
Коммит 8b821f8f12
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -33,8 +33,6 @@ void ScrollViewShadowNode::updateStateIfNeeded() {
void ScrollViewShadowNode::updateScrollContentOffsetIfNeeded() {
#ifndef ANDROID
react_native_assert(
children_->size() == 1 && "ScrollView only has single child");
if (getLayoutMetrics().layoutDirection == LayoutDirection::RightToLeft) {
// Yoga place `contentView` on the right side of `scrollView` when RTL
// layout is enforced. To correct for this, in RTL setting, correct the