diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index 9719aff75..eace68274 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -190,7 +190,10 @@ type OptionalProps = { * @platform android */ progressViewOffset?: number, - legacyImplementation?: ?boolean, + /** + * The legacy implementation is no longer supported. + */ + legacyImplementation?: empty, /** * Set this true while waiting for new data from a refresh. */ diff --git a/Libraries/Lists/SectionList.js b/Libraries/Lists/SectionList.js index 396344a05..10c26fd14 100644 --- a/Libraries/Lists/SectionList.js +++ b/Libraries/Lists/SectionList.js @@ -181,7 +181,10 @@ type OptionalProps> = { */ stickySectionHeadersEnabled?: boolean, - legacyImplementation?: ?boolean, + /** + * The legacy implementation is no longer supported. + */ + legacyImplementation?: empty, }; export type Props = RequiredProps & @@ -323,9 +326,7 @@ class SectionList> extends React.PureComponent< } render() { - const List = this.props.legacyImplementation - ? MetroListView - : VirtualizedSectionList; + const List = VirtualizedSectionList; /* $FlowFixMe(>=0.66.0 site=react_native_fb) This comment suppresses an * error found when Flow v0.66 was deployed. To see the error delete this * comment and run Flow. */ diff --git a/RNTester/js/FlatListExample.js b/RNTester/js/FlatListExample.js index 2f27f3224..d8eeb4626 100644 --- a/RNTester/js/FlatListExample.js +++ b/RNTester/js/FlatListExample.js @@ -131,7 +131,6 @@ class FlatListExample extends React.PureComponent<{}, $FlowFixMeState> { } keyboardShouldPersistTaps="always" keyboardDismissMode="on-drag" - legacyImplementation={false} numColumns={1} onEndReached={this._onEndReached} onRefresh={this._onRefresh} diff --git a/RNTester/js/MultiColumnExample.js b/RNTester/js/MultiColumnExample.js index d943c4d32..1266cf1b6 100644 --- a/RNTester/js/MultiColumnExample.js +++ b/RNTester/js/MultiColumnExample.js @@ -96,7 +96,6 @@ class MultiColumnExample extends React.PureComponent< renderItem={this._renderItemComponent} disableVirtualization={!this.state.virtualized} onViewableItemsChanged={this._onViewableItemsChanged} - legacyImplementation={false} /> ); diff --git a/RNTester/js/RNTesterExampleList.js b/RNTester/js/RNTesterExampleList.js index 28541443b..c99b1b222 100644 --- a/RNTester/js/RNTesterExampleList.js +++ b/RNTester/js/RNTesterExampleList.js @@ -111,7 +111,6 @@ class RNTesterExampleList extends React.Component { keyboardShouldPersistTaps="handled" automaticallyAdjustContentInsets={false} keyboardDismissMode="on-drag" - legacyImplementation={false} renderSectionHeader={renderSectionHeader} />