diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 7f47f8c026..fe2d46c8f1 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3697,6 +3697,12 @@ export interface SectionListProperties extends ScrollViewProperties { * This may improve scroll performance for large lists. */ removeClippedSubviews?: boolean + + /** + * Makes section headers stick to the top of the screen until the next one pushes it off. + * Only enabled by default on iOS because that is the platform standard there. + */ + stickySectionHeadersEnabled?: boolean } export interface SectionListStatic extends React.ComponentClass> { @@ -3835,6 +3841,15 @@ export interface ListViewProperties extends ScrollViewProperties { * @platform ios */ stickyHeaderIndices?: number[] + + /** + * Makes the sections headers sticky. The sticky behavior means that it will scroll with the + * content at the top of the section until it reaches the top of the screen, at which point it + * will stick to the top until it is pushed off the screen by the next section header. This + * property is not supported in conjunction with `horizontal={true}`. Only enabled by default + * on iOS because of typical platform standards. + */ + stickySectionHeadersEnabled?: boolean }