Skip to content

Move VirtualCollection components into react-native-github#56256

Open
CalixTang wants to merge 1 commit intofacebook:mainfrom
CalixTang:export-D98039999
Open

Move VirtualCollection components into react-native-github#56256
CalixTang wants to merge 1 commit intofacebook:mainfrom
CalixTang:export-D98039999

Conversation

@CalixTang
Copy link
Copy Markdown
Contributor

Summary:
Moves the core Fling virtual collection components (VirtualRow, VirtualColumn,
VirtualCollectionView, and supporting files) from xplat/js/RKJSModules/Libraries/List/ into xplat/js/react-native-github/packages/react-native/src/private/components/virtualcollection/.

Updated 40 consumer files to import from 'react-native' instead of Haste and regenerated BUCK files

Changelog: [Internal]

Key changes:

  • Moved 10 files (Virtual, VirtualCollectionView, FlingConstants, VirtualColumn,
    VirtualColumnGenerator, VirtualRow, VirtualRowGenerator, FlingDebugItemOverlay,
    getScrollParent, isScrollableNode) into react-native-github
  • Resolved all fb_internal imports (ReactNativeElement, ReadOnlyElement,
    ReactNativeFeatureFlags, createHiddenVirtualView) to use relative paths
    within src/private/
  • Converted copyright headers from proprietary to MIT license
  • Added public re-exports to react-native index.js and index.js.flow
    (VirtualColumn, VirtualRow, VirtualArray, VirtualCollection, VirtualItem,
    createVirtualCollectionView, VirtualColumnGenerator, getScrollParent,
    DEFAULT_INITIAL_NUM_TO_RENDER)

Reviewed By: lunaleaps

Differential Revision: D98039999

Summary:
Moves the core Fling virtual collection components (VirtualRow, VirtualColumn,
VirtualCollectionView, and supporting files) from xplat/js/RKJSModules/Libraries/List/ into xplat/js/react-native-github/packages/react-native/src/private/components/virtualcollection/.

Updated 40 consumer files to import from 'react-native' instead of Haste and regenerated BUCK files

# Changelog: [Internal]

Key changes:
- Moved 10 files (Virtual, VirtualCollectionView, FlingConstants, VirtualColumn,
  VirtualColumnGenerator, VirtualRow, VirtualRowGenerator, FlingDebugItemOverlay,
  getScrollParent, isScrollableNode) into react-native-github
- Resolved all fb_internal imports (ReactNativeElement, ReadOnlyElement,
  ReactNativeFeatureFlags, createHiddenVirtualView) to use relative paths
  within src/private/
- Converted copyright headers from proprietary to MIT license
- Added public re-exports to react-native index.js and index.js.flow
  (VirtualColumn, VirtualRow, VirtualArray, VirtualCollection, VirtualItem,
  createVirtualCollectionView, VirtualColumnGenerator, getScrollParent,
  DEFAULT_INITIAL_NUM_TO_RENDER)

Reviewed By: lunaleaps

Differential Revision: D98039999
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Mar 27, 2026

@CalixTang has exported this pull request. If you are a Meta employee, you can view the originating Diff in D98039999.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant