Files
react-native/packages/virtualized-lists/index.js
Iwo PlazaandFacebook GitHub Bot dc494bb341 Revert [RN][JS Stable API] Limit @react-native/virtualized-lists subpath imports (#50846)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50846

## Motivation
After a more rigorous search through GitHub uses of the restricted APIs, and consultation with framework authors, it became apparent that this restriction should be lifted.

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D73267844

fbshipit-source-id: e6c0c146690c07debf74c51f82171a9239be5c15
2025-04-23 10:20:06 -07:00

62 lines
1.8 KiB
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
import typeof FillRateHelper from './Lists/FillRateHelper';
import typeof ViewabilityHelper from './Lists/ViewabilityHelper';
import typeof VirtualizedList from './Lists/VirtualizedList';
import typeof VirtualizedSectionList from './Lists/VirtualizedSectionList';
import {typeof VirtualizedListContextResetter} from './Lists/VirtualizedListContext';
import {keyExtractor} from './Lists/VirtualizeUtils';
export type {
ViewToken,
ViewabilityConfig,
ViewabilityConfigCallbackPair,
ViewabilityConfigCallbackPairs,
} from './Lists/ViewabilityHelper';
export type {
CellRendererProps,
ListRenderItemInfo,
ListRenderItem,
Separators,
VirtualizedListProps,
} from './Lists/VirtualizedListProps';
export type {
VirtualizedSectionListProps,
ScrollToLocationParamsType,
SectionBase,
SectionData,
} from './Lists/VirtualizedSectionList';
export type {FillRateInfo} from './Lists/FillRateHelper';
export default {
keyExtractor,
get VirtualizedList(): VirtualizedList {
return require('./Lists/VirtualizedList').default;
},
get VirtualizedSectionList(): VirtualizedSectionList<any, any> {
return require('./Lists/VirtualizedSectionList').default;
},
get VirtualizedListContextResetter(): VirtualizedListContextResetter {
const VirtualizedListContext = require('./Lists/VirtualizedListContext');
return VirtualizedListContext.VirtualizedListContextResetter;
},
get ViewabilityHelper(): ViewabilityHelper {
return require('./Lists/ViewabilityHelper').default;
},
get FillRateHelper(): FillRateHelper {
return require('./Lists/FillRateHelper').default;
},
};