2018-05-17 20:03:39 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-05-17 20:03:39 -07:00
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-11-10 14:19:08 -08:00
|
|
|
#include <react/components/scrollview/primitives.h>
|
|
|
|
#include <react/components/view/ViewProps.h>
|
2018-05-17 20:03:39 -07:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
// TODO (T28334063): Consider for codegen.
|
2018-10-05 11:01:08 -07:00
|
|
|
class ScrollViewProps final : public ViewProps {
|
|
|
|
public:
|
2018-05-17 20:03:39 -07:00
|
|
|
ScrollViewProps() = default;
|
|
|
|
ScrollViewProps(const ScrollViewProps &sourceProps, const RawProps &rawProps);
|
|
|
|
|
|
|
|
#pragma mark - Props
|
|
|
|
|
2018-10-09 16:24:58 -07:00
|
|
|
const bool alwaysBounceHorizontal{};
|
|
|
|
const bool alwaysBounceVertical{};
|
2018-10-05 11:01:08 -07:00
|
|
|
const bool bounces{true};
|
|
|
|
const bool bouncesZoom{true};
|
|
|
|
const bool canCancelContentTouches{true};
|
|
|
|
const bool centerContent{};
|
|
|
|
const bool automaticallyAdjustContentInsets{};
|
|
|
|
const Float decelerationRate{0.998};
|
|
|
|
const bool directionalLockEnabled{};
|
|
|
|
const ScrollViewIndicatorStyle indicatorStyle{};
|
|
|
|
const ScrollViewKeyboardDismissMode keyboardDismissMode{};
|
|
|
|
const Float maximumZoomScale{1.0};
|
|
|
|
const Float minimumZoomScale{1.0};
|
|
|
|
const bool scrollEnabled{true};
|
|
|
|
const bool pagingEnabled{};
|
|
|
|
const bool pinchGestureEnabled{true};
|
|
|
|
const bool scrollsToTop{true};
|
|
|
|
const bool showsHorizontalScrollIndicator{true};
|
|
|
|
const bool showsVerticalScrollIndicator{true};
|
|
|
|
const Float scrollEventThrottle{};
|
|
|
|
const Float zoomScale{1.0};
|
|
|
|
const EdgeInsets contentInset{};
|
|
|
|
const EdgeInsets scrollIndicatorInsets{};
|
|
|
|
const int snapToInterval{};
|
|
|
|
const ScrollViewSnapToAlignment snapToAlignment{};
|
2018-05-17 20:03:39 -07:00
|
|
|
|
|
|
|
#pragma mark - DebugStringConvertible
|
|
|
|
|
2018-09-28 10:24:38 -07:00
|
|
|
#if RN_DEBUG_STRING_CONVERTIBLE
|
2018-05-17 20:03:39 -07:00
|
|
|
SharedDebugStringConvertibleList getDebugProps() const override;
|
2018-09-28 10:24:38 -07:00
|
|
|
#endif
|
2018-05-17 20:03:39 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|