From 74a8cc97713a85b139c50151e7d4e4186ff3fc64 Mon Sep 17 00:00:00 2001 From: Joseph Roque Date: Wed, 21 Jun 2017 00:54:16 -0700 Subject: [PATCH] Add missing stickySectionHeadersEnabled prop --- types/react-native/index.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 }