/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/renderer/components/scrollview/BaseScrollViewProps.h
84 строки
2 KB
Nick Lefever
Move Android ScrollView props to HostPlatformScrollViewProps (#51517)
26 май 2025, 20:54
26 май 2025, 20:54
a314e34
Код
Авторство
О чём код?
/* * 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. */ #pragma once #include <react/renderer/components/scrollview/primitives.h> #include <react/renderer/components/view/ViewProps.h> #include <react/renderer/core/PropsParserContext.h> #include <optional> namespace facebook::react { // TODO (T28334063): Consider for codegen. class BaseScrollViewProps : public ViewProps { public: BaseScrollViewProps() = default; BaseScrollViewProps( const PropsParserContext& context, const BaseScrollViewProps& sourceProps, const RawProps& rawProps); void setProp( const PropsParserContext& context, RawPropsPropNameHash hash, const char* propName, const RawValue& value); #pragma mark - Props bool alwaysBounceHorizontal{}; bool alwaysBounceVertical{}; bool bounces{true}; bool bouncesZoom{true}; bool canCancelContentTouches{true}; bool centerContent{}; bool automaticallyAdjustContentInsets{}; bool automaticallyAdjustsScrollIndicatorInsets{true}; bool automaticallyAdjustKeyboardInsets{false}; Float decelerationRate{0.998f}; Float endDraggingSensitivityMultiplier{1}; bool directionalLockEnabled{}; ScrollViewIndicatorStyle indicatorStyle{}; ScrollViewKeyboardDismissMode keyboardDismissMode{}; std::optional<ScrollViewMaintainVisibleContentPosition> maintainVisibleContentPosition{}; Float maximumZoomScale{1.0f}; Float minimumZoomScale{1.0f}; bool scrollEnabled{true}; bool pagingEnabled{}; bool pinchGestureEnabled{true}; bool scrollsToTop{true}; bool showsHorizontalScrollIndicator{true}; bool showsVerticalScrollIndicator{true}; bool persistentScrollbar{false}; bool horizontal{false}; Float scrollEventThrottle{}; Float zoomScale{1.0f}; EdgeInsets contentInset{}; Point contentOffset{}; EdgeInsets scrollIndicatorInsets{}; Float snapToInterval{}; ScrollViewSnapToAlignment snapToAlignment{}; bool disableIntervalMomentum{false}; std::vector<Float> snapToOffsets{}; bool snapToStart{true}; bool snapToEnd{true}; ContentInsetAdjustmentBehavior contentInsetAdjustmentBehavior{ ContentInsetAdjustmentBehavior::Never}; bool scrollToOverflowEnabled{false}; bool isInvertedVirtualizedList{false}; #pragma mark - DebugStringConvertible #if RN_DEBUG_STRING_CONVERTIBLE SharedDebugStringConvertibleList getDebugProps() const override; #endif }; } // namespace facebook::react