mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
Merge pull request #16613 from huhuanming/react-native
Add removeClippedSubviews To SectionList & FlatList
This commit is contained in:
14
types/react-native/index.d.ts
vendored
14
types/react-native/index.d.ts
vendored
@@ -3524,6 +3524,13 @@ export interface FlatListProperties<ItemT> {
|
||||
* See `ViewabilityHelper` for flow type and further documentation.
|
||||
*/
|
||||
viewabilityConfig?: any
|
||||
|
||||
/**
|
||||
* Note: may have bugs (missing content) in some circumstances - use at your own risk.
|
||||
*
|
||||
* This may improve scroll performance for large lists.
|
||||
*/
|
||||
removeClippedSubviews?: boolean
|
||||
}
|
||||
|
||||
export interface FlatListStatic<ItemT> extends React.ComponentClass<FlatListProperties<ItemT>> {
|
||||
@@ -3649,6 +3656,13 @@ export interface SectionListProperties<ItemT> extends ScrollViewProperties {
|
||||
* Render a custom scroll component, e.g. with a differently styled `RefreshControl`.
|
||||
*/
|
||||
renderScrollComponent?: (props: ScrollViewProperties) => React.ReactElement<ScrollViewProperties>
|
||||
|
||||
/**
|
||||
* Note: may have bugs (missing content) in some circumstances - use at your own risk.
|
||||
*
|
||||
* This may improve scroll performance for large lists.
|
||||
*/
|
||||
removeClippedSubviews?: boolean
|
||||
}
|
||||
|
||||
export interface SectionListStatic<SectionT> extends React.ComponentClass<SectionListProperties<SectionT>> {
|
||||
|
||||
Reference in New Issue
Block a user