/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/components/scrollview/ScrollViewState.cpp
24 строки
622 B
Samuel Susla
Initialise ScrollView state with content offset from props (#36961)
20 апр 2023, 17:36
20 апр 2023, 17:36
2d9c817
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ScrollViewState.h" namespace facebook::react { ScrollViewState::ScrollViewState( Point contentOffset, Rect contentBoundingRect, int scrollAwayPaddingTop) : contentOffset(contentOffset), contentBoundingRect(contentBoundingRect), scrollAwayPaddingTop(scrollAwayPaddingTop) {} Size ScrollViewState::getContentSize() const { return contentBoundingRect.size; } } // namespace facebook::react