From 8c14d518ce392805dc02bb2f0347c2a33fc1d771 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 29 Jun 2020 15:51:22 -0700 Subject: [PATCH] Fabric: Removing `const` qualifiers from some *Props fields Summary: Same as D19583582 (https://github.com/facebook/react-native/commit/5b2ea6ec6ab8cecad35d6309ceec3853aa37b0a3). We need this for implementing some tests. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D22284646 fbshipit-source-id: 9dd6575475c133b9426838021af4d59fb9fc3c65 --- .../fabric/components/root/RootProps.h | 4 +- .../components/scrollview/ScrollViewProps.h | 52 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/ReactCommon/fabric/components/root/RootProps.h b/ReactCommon/fabric/components/root/RootProps.h index 11bda3e4c6..3cffe6256a 100644 --- a/ReactCommon/fabric/components/root/RootProps.h +++ b/ReactCommon/fabric/components/root/RootProps.h @@ -27,8 +27,8 @@ class RootProps final : public ViewProps { #pragma mark - Props - LayoutConstraints const layoutConstraints{}; - LayoutContext const layoutContext{}; + LayoutConstraints layoutConstraints{}; + LayoutContext layoutContext{}; }; } // namespace react diff --git a/ReactCommon/fabric/components/scrollview/ScrollViewProps.h b/ReactCommon/fabric/components/scrollview/ScrollViewProps.h index e520c17363..a6c08781f9 100644 --- a/ReactCommon/fabric/components/scrollview/ScrollViewProps.h +++ b/ReactCommon/fabric/components/scrollview/ScrollViewProps.h @@ -21,32 +21,32 @@ class ScrollViewProps final : public ViewProps { #pragma mark - Props - bool const alwaysBounceHorizontal{}; - bool const alwaysBounceVertical{}; - bool const bounces{true}; - bool const bouncesZoom{true}; - bool const canCancelContentTouches{true}; - bool const centerContent{}; - bool const automaticallyAdjustContentInsets{}; - Float const decelerationRate{0.998}; - bool const directionalLockEnabled{}; - ScrollViewIndicatorStyle const indicatorStyle{}; - ScrollViewKeyboardDismissMode const keyboardDismissMode{}; - Float const maximumZoomScale{1.0}; - Float const minimumZoomScale{1.0}; - bool const scrollEnabled{true}; - bool const pagingEnabled{}; - bool const pinchGestureEnabled{true}; - bool const scrollsToTop{true}; - bool const showsHorizontalScrollIndicator{true}; - bool const showsVerticalScrollIndicator{true}; - Float const scrollEventThrottle{}; - Float const zoomScale{1.0}; - EdgeInsets const contentInset{}; - Point const contentOffset{}; - EdgeInsets const scrollIndicatorInsets{}; - Float const snapToInterval{}; - ScrollViewSnapToAlignment const snapToAlignment{}; + bool alwaysBounceHorizontal{}; + bool alwaysBounceVertical{}; + bool bounces{true}; + bool bouncesZoom{true}; + bool canCancelContentTouches{true}; + bool centerContent{}; + bool automaticallyAdjustContentInsets{}; + Float decelerationRate{0.998}; + bool directionalLockEnabled{}; + ScrollViewIndicatorStyle indicatorStyle{}; + ScrollViewKeyboardDismissMode keyboardDismissMode{}; + Float maximumZoomScale{1.0}; + Float minimumZoomScale{1.0}; + bool scrollEnabled{true}; + bool pagingEnabled{}; + bool pinchGestureEnabled{true}; + bool scrollsToTop{true}; + bool showsHorizontalScrollIndicator{true}; + bool showsVerticalScrollIndicator{true}; + Float scrollEventThrottle{}; + Float zoomScale{1.0}; + EdgeInsets contentInset{}; + Point contentOffset{}; + EdgeInsets scrollIndicatorInsets{}; + Float snapToInterval{}; + ScrollViewSnapToAlignment snapToAlignment{}; #pragma mark - DebugStringConvertible