Skip to content

Update ReanimatedDrawerLayout types#4178

Merged
m-bert merged 2 commits into
mainfrom
@mbert/drawer-types
May 15, 2026
Merged

Update ReanimatedDrawerLayout types#4178
m-bert merged 2 commits into
mainfrom
@mbert/drawer-types

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

@m-bert m-bert commented May 14, 2026

Description

Following #4175 I've decided to update types that can be passed as SharedValue also in Drawer

Test plan

Static checks

Copilot AI review requested due to automatic review settings May 14, 2026 15:30
@m-bert m-bert requested a review from j-piasecki May 14, 2026 15:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates ReanimatedDrawerLayout’s public prop types so certain web/trackpad-related configuration props can also be provided as Reanimated SharedValues (matching behavior already supported by the underlying v3 gesture config), and aligns the documentation accordingly.

Changes:

  • Extend DrawerLayoutProps to accept SharedValue for enableTrackpadTwoFingerGesture, activeCursor, and mouseButton.
  • Update ReanimatedDrawerLayout docs to reflect SharedValue-capable prop types and mark enableTrackpadTwoFingerGesture as supported on Web as well.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/react-native-gesture-handler/src/components/ReanimatedDrawerLayout.tsx Updates exported DrawerLayoutProps typing to allow SharedValue-driven configuration for select gesture-related props.
packages/docs-gesture-handler/docs/components/reanimated-drawer-layout.mdx Documents the updated prop typings (including SharedValue support) and adjusts platform badges.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@m-bert m-bert merged commit ce30139 into main May 15, 2026
7 checks passed
@m-bert m-bert deleted the @mbert/drawer-types branch May 15, 2026 08:02
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.

3 participants