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,