Skip to content

Commit 7b5b7b2

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Update VirtualizedSectionList props name (facebook#49592)
Summary: Pull Request resolved: facebook#49592 Changelog: [Internal] Reviewed By: huntie Differential Revision: D69984225 fbshipit-source-id: 753917f31a803c3bc8ea2e4635ec1d58cecb9224
1 parent 021167e commit 7b5b7b2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/virtualized-lists/Lists/VirtualizedSectionList.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ type OptionalProps<SectionT: SectionBase<any>> = {
9191

9292
type VirtualizedListProps = React.ElementConfig<typeof VirtualizedList>;
9393

94-
export type Props<SectionT: SectionBase<any>> = {
94+
export type VirtualizedSectionListProps<SectionT: SectionBase<any>> = {
9595
...RequiredProps<SectionT>,
9696
...OptionalProps<SectionT>,
9797
...$Diff<
@@ -120,7 +120,7 @@ type State = {childProps: VirtualizedListProps, ...};
120120
*/
121121
class VirtualizedSectionList<
122122
SectionT: SectionBase<any>,
123-
> extends React.PureComponent<Props<SectionT>, State> {
123+
> extends React.PureComponent<VirtualizedSectionListProps<SectionT>, State> {
124124
scrollToLocation(params: ScrollToLocationParamsType) {
125125
let index = params.itemIndex;
126126
for (let i = 0; i < params.sectionIndex; i++) {
@@ -203,7 +203,7 @@ class VirtualizedSectionList<
203203
}
204204

205205
_getItem(
206-
props: Props<SectionT>,
206+
props: VirtualizedSectionListProps<SectionT>,
207207
sections: ?$ReadOnlyArray<Item>,
208208
index: number,
209209
): ?Item {
@@ -605,5 +605,5 @@ export default VirtualizedSectionList as component(
605605
scrollToLocation(params: ScrollToLocationParamsType): void,
606606
},
607607
>,
608-
...Props<SectionBase<any>>
608+
...VirtualizedSectionListProps<SectionBase<any>>
609609
);

packages/virtualized-lists/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export type {
3131
Separators,
3232
} from './Lists/VirtualizedListProps';
3333
export type {
34-
Props as VirtualizedSectionListProps,
34+
VirtualizedSectionListProps,
3535
ScrollToLocationParamsType,
3636
SectionBase,
3737
} from './Lists/VirtualizedSectionList';

0 commit comments

Comments
 (0)