Skip to content

fix: stub Reanimated globals on web to unblock fn() actions#855

Merged
dannyhw merged 2 commits into
nextfrom
dannyhw/fix/reanimated-globals
Feb 28, 2026
Merged

fix: stub Reanimated globals on web to unblock fn() actions#855
dannyhw merged 2 commits into
nextfrom
dannyhw/fix/reanimated-globals

Conversation

@dannyhw

@dannyhw dannyhw commented Feb 28, 2026

Copy link
Copy Markdown
Member

Summary

  • Stubs ProgressTransitionRegister and UpdatePropsManager globals on web platform in preview.ts
  • These Reanimated globals are not available on web and their absence was silently preventing fn() from storybook/test from triggering actions

Problem

When running on web, the missing Reanimated globals caused fn() mocks to not fire, so actions using storybook/test fn() would silently fail to appear in the actions panel.

Test plan

  • Run the expo example on web
  • Verify actions using fn() from storybook/test trigger and appear in the actions panel
  • Verify no regressions on native (iOS/Android) — the stubs are web-only

Stub ProgressTransitionRegister and UpdatePropsManager globals on
web to prevent crashes when Reanimated is in the dependency graph
but not running on a native platform.
@changeset-bot

changeset-bot Bot commented Feb 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6240aa1

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 Patch
@storybook/addon-ondevice-actions Patch
@storybook/addon-ondevice-backgrounds Patch
@storybook/addon-ondevice-controls Patch
@storybook/addon-ondevice-notes Patch
@storybook/react-native-ui Patch
@storybook/react-native-ui-common Patch
@storybook/react-native-ui-lite Patch
@storybook/react-native-theming 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 6b85c99 into next Feb 28, 2026
1 check passed
@dannyhw dannyhw deleted the dannyhw/fix/reanimated-globals branch June 6, 2026 22:36
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