From d40f2a29c653d7a5aa725abf5634cf13e7b877df Mon Sep 17 00:00:00 2001 From: Kacie Bawiec Date: Thu, 18 Mar 2021 08:01:17 -0700 Subject: [PATCH] Switch AdsManagerRefreshableScrollView to use ElementConfig instead of ElementProps Summary: Changelog: [Changed] Removed rest operator from ScrollViewStickyHeader props Reviewed By: lunaleaps Differential Revision: D27100507 fbshipit-source-id: 7d90ebeaf757bcaed0b125a4a8abf44f07adf98f --- Libraries/Components/ScrollView/ScrollViewStickyHeader.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js index db5ae18682b..d2c8e1d322f 100644 --- a/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +++ b/Libraries/Components/ScrollView/ScrollViewStickyHeader.js @@ -22,7 +22,7 @@ import type {LayoutEvent} from '../../Types/CoreEventTypes'; const AnimatedView = AnimatedImplementation.createAnimatedComponent(View); -export type Props = { +export type Props = $ReadOnly<{ children?: React.Element, nextHeaderLayoutY: ?number, onLayout: (event: LayoutEvent) => void, @@ -34,8 +34,7 @@ export type Props = { scrollViewHeight: ?number, nativeID?: ?string, hiddenOnScroll?: ?boolean, - ... -}; +}>; type State = { measured: boolean,