Skip to content

fix: add LegendList wrapper to use react entrypoint on web#859

Merged
dannyhw merged 2 commits intonextfrom
danielwilliams/legend-list-wrapper
Feb 28, 2026
Merged

fix: add LegendList wrapper to use react entrypoint on web#859
dannyhw merged 2 commits intonextfrom
danielwilliams/legend-list-wrapper

Conversation

@dannyhw
Copy link
Member

@dannyhw dannyhw commented Feb 28, 2026

Summary

  • Adds a LegendList wrapper component that switches between @legendapp/list/react on web and @legendapp/list/react-native on native via a runtime Platform.OS check
  • Removes the manual scrollable <div> web workaround from SearchResults.tsx
  • Removes @ts-ignore comments from Tree.tsx and SearchResults.tsx by casting the export to the native type

Test plan

  • Verify LegendList renders correctly on native (Tree + SearchResults)
  • Verify LegendList renders correctly on web (Tree + SearchResults)
  • Verify scrollToIndex works in Tree on both platforms

Create a LegendList wrapper component that uses @legendapp/list/react
on web and @legendapp/list/react-native on native via a runtime
Platform check. This removes the need for @ts-ignore comments in
Tree.tsx and SearchResults.tsx.
@changeset-bot
Copy link

changeset-bot bot commented Feb 28, 2026

🦋 Changeset detected

Latest commit: 115fa28

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@storybook/react-native-ui-lite Patch
@storybook/react-native Patch
@storybook/react-native-ui Patch
@storybook/react-native-ui-common Patch
@storybook/react-native-theming Patch
@storybook/addon-ondevice-actions Patch
@storybook/addon-ondevice-backgrounds Patch
@storybook/addon-ondevice-controls Patch
@storybook/addon-ondevice-notes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dannyhw dannyhw merged commit a13f421 into next Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant