Skip to content

fix: move react-native-gesture-handler to peer dependencies#930

Merged
kylemcd merged 1 commit intomainfrom
kyle-kno-12406-move-react-native-gesture-handler-to-peer-dependencies-in
Apr 2, 2026
Merged

fix: move react-native-gesture-handler to peer dependencies#930
kylemcd merged 1 commit intomainfrom
kyle-kno-12406-move-react-native-gesture-handler-to-peer-dependencies-in

Conversation

@kylemcd
Copy link
Copy Markdown
Member

@kylemcd kylemcd commented Apr 2, 2026

Description

  • react-native-gesture-handler is listed as a direct dependency in @knocklabs/react-native and @knocklabs/expo, but neither package imports it anywhere in source code
  • Having it in dependencies force-installs a copy for consumers, who almost always already have it via expo-router or @react-navigation, causing Expo Doctor to flag duplicate native modules
  • Moved it to peerDependencies (with >=2.0.0 to give consumers flexibility) and devDependencies (for local development)
  • Addresses the same issue raised in fix: move gesture handler to peer deps #928, applied here instead to avoid merge conflicts with the Expo SDK 55 version upgrades in chore: upgrade expo and react native packages to their latest versions #926

Move react-native-gesture-handler from dependencies to peerDependencies
in @knocklabs/react-native and @knocklabs/expo so consumer apps do not
install duplicate native module copies.
@linear
Copy link
Copy Markdown

linear bot commented Apr 2, 2026

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
javascript-ms-teams-connect-example Ready Ready Preview, Comment Apr 2, 2026 6:25pm
javascript-nextjs-example Ready Ready Preview, Comment Apr 2, 2026 6:25pm
javascript-slack-connect-example Ready Ready Preview, Comment Apr 2, 2026 6:25pm
javascript-slack-kit-example Ready Ready Preview, Comment Apr 2, 2026 6:25pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

🦋 Changeset detected

Latest commit: 2a22812

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

This PR includes changesets to release 3 packages
Name Type
@knocklabs/expo Patch
@knocklabs/react-native Patch
@knocklabs/expo-example 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

Copy link
Copy Markdown
Member Author

kylemcd commented Apr 2, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kylemcd kylemcd merged commit b932f46 into main Apr 2, 2026
14 checks passed
@kylemcd kylemcd deleted the kyle-kno-12406-move-react-native-gesture-handler-to-peer-dependencies-in branch April 2, 2026 18:51
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 63.91%. Comparing base (ecbfed1) to head (2a22812).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #930   +/-   ##
=======================================
  Coverage   63.91%   63.91%           
=======================================
  Files         209      209           
  Lines        9949     9949           
  Branches     1274     1274           
=======================================
  Hits         6359     6359           
  Misses       3565     3565           
  Partials       25       25           

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.

2 participants