mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Pass context through to all prop parser (props structs changes)
Summary: See previous diffs for context. This updates all of the relevant props structs. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D29855426 fbshipit-source-id: 30177c3380ef82ecf8f2a4321f128cfbe8a576e0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
09b9422516
commit
5d33e65694
@@ -17,163 +17,204 @@ namespace facebook {
|
||||
namespace react {
|
||||
|
||||
ScrollViewProps::ScrollViewProps(
|
||||
const PropsParserContext &context,
|
||||
ScrollViewProps const &sourceProps,
|
||||
RawProps const &rawProps)
|
||||
: ViewProps(sourceProps, rawProps),
|
||||
: ViewProps(context, sourceProps, rawProps),
|
||||
alwaysBounceHorizontal(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"alwaysBounceHorizontal",
|
||||
sourceProps.alwaysBounceHorizontal,
|
||||
{})),
|
||||
alwaysBounceVertical(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"alwaysBounceVertical",
|
||||
sourceProps.alwaysBounceVertical,
|
||||
{})),
|
||||
bounces(convertRawProp(rawProps, "bounces", sourceProps.bounces, true)),
|
||||
bounces(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"bounces",
|
||||
sourceProps.bounces,
|
||||
true)),
|
||||
bouncesZoom(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"bouncesZoom",
|
||||
sourceProps.bouncesZoom,
|
||||
true)),
|
||||
canCancelContentTouches(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"canCancelContentTouches",
|
||||
sourceProps.canCancelContentTouches,
|
||||
true)),
|
||||
centerContent(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"centerContent",
|
||||
sourceProps.centerContent,
|
||||
{})),
|
||||
automaticallyAdjustContentInsets(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"automaticallyAdjustContentInsets",
|
||||
sourceProps.automaticallyAdjustContentInsets,
|
||||
{})),
|
||||
automaticallyAdjustsScrollIndicatorInsets(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"automaticallyAdjustsScrollIndicatorInsets",
|
||||
sourceProps.automaticallyAdjustsScrollIndicatorInsets,
|
||||
true)),
|
||||
decelerationRate(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"decelerationRate",
|
||||
sourceProps.decelerationRate,
|
||||
(Float)0.998)),
|
||||
directionalLockEnabled(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"directionalLockEnabled",
|
||||
sourceProps.directionalLockEnabled,
|
||||
{})),
|
||||
indicatorStyle(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"indicatorStyle",
|
||||
sourceProps.indicatorStyle,
|
||||
{})),
|
||||
keyboardDismissMode(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"keyboardDismissMode",
|
||||
sourceProps.keyboardDismissMode,
|
||||
{})),
|
||||
maximumZoomScale(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"maximumZoomScale",
|
||||
sourceProps.maximumZoomScale,
|
||||
(Float)1.0)),
|
||||
minimumZoomScale(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"minimumZoomScale",
|
||||
sourceProps.minimumZoomScale,
|
||||
(Float)1.0)),
|
||||
scrollEnabled(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"scrollEnabled",
|
||||
sourceProps.scrollEnabled,
|
||||
true)),
|
||||
pagingEnabled(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"pagingEnabled",
|
||||
sourceProps.pagingEnabled,
|
||||
{})),
|
||||
pinchGestureEnabled(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"pinchGestureEnabled",
|
||||
sourceProps.pinchGestureEnabled,
|
||||
true)),
|
||||
scrollsToTop(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"scrollsToTop",
|
||||
sourceProps.scrollsToTop,
|
||||
true)),
|
||||
showsHorizontalScrollIndicator(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"showsHorizontalScrollIndicator",
|
||||
sourceProps.showsHorizontalScrollIndicator,
|
||||
true)),
|
||||
showsVerticalScrollIndicator(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"showsVerticalScrollIndicator",
|
||||
sourceProps.showsVerticalScrollIndicator,
|
||||
true)),
|
||||
scrollEventThrottle(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"scrollEventThrottle",
|
||||
sourceProps.scrollEventThrottle,
|
||||
{})),
|
||||
zoomScale(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"zoomScale",
|
||||
sourceProps.zoomScale,
|
||||
(Float)1.0)),
|
||||
contentInset(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"contentInset",
|
||||
sourceProps.contentInset,
|
||||
{})),
|
||||
contentOffset(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"contentOffset",
|
||||
sourceProps.contentOffset,
|
||||
{})),
|
||||
scrollIndicatorInsets(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"scrollIndicatorInsets",
|
||||
sourceProps.scrollIndicatorInsets,
|
||||
{})),
|
||||
snapToInterval(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"snapToInterval",
|
||||
sourceProps.snapToInterval,
|
||||
{})),
|
||||
snapToAlignment(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"snapToAlignment",
|
||||
sourceProps.snapToAlignment,
|
||||
{})),
|
||||
disableIntervalMomentum(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"disableIntervalMomentum",
|
||||
sourceProps.disableIntervalMomentum,
|
||||
{})),
|
||||
snapToOffsets(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"snapToOffsets",
|
||||
sourceProps.snapToOffsets,
|
||||
{})),
|
||||
snapToStart(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"snapToStart",
|
||||
sourceProps.snapToStart,
|
||||
true)),
|
||||
snapToEnd(
|
||||
convertRawProp(rawProps, "snapToEnd", sourceProps.snapToEnd, true)),
|
||||
snapToEnd(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"snapToEnd",
|
||||
sourceProps.snapToEnd,
|
||||
true)),
|
||||
contentInsetAdjustmentBehavior(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"contentInsetAdjustmentBehavior",
|
||||
sourceProps.contentInsetAdjustmentBehavior,
|
||||
{ContentInsetAdjustmentBehavior::Never})),
|
||||
scrollToOverflowEnabled(convertRawProp(
|
||||
context,
|
||||
rawProps,
|
||||
"scrollToOverflowEnabled",
|
||||
sourceProps.scrollToOverflowEnabled,
|
||||
|
||||
Reference in New Issue
Block a user