Skip to content

fix: move gesture handler to peer deps#928

Closed
JoaoPauloCMarra wants to merge 1 commit intoknocklabs:mainfrom
JoaoPauloCMarra:fix/rngh-peer-deps
Closed

fix: move gesture handler to peer deps#928
JoaoPauloCMarra wants to merge 1 commit intoknocklabs:mainfrom
JoaoPauloCMarra:fix/rngh-peer-deps

Conversation

@JoaoPauloCMarra
Copy link
Copy Markdown

@JoaoPauloCMarra JoaoPauloCMarra commented Apr 2, 2026

Summary

Move react-native-gesture-handler from direct dependencies to peer dependencies in the Expo and React Native packages so consumer apps own a single native install.

Changes

  • move react-native-gesture-handler to peerDependencies in @knocklabs/expo and @knocklabs/react-native
  • keep it in devDependencies for local package development
  • add a changeset for patch releases

Why

Expo Doctor flags duplicate native modules when these packages vendor their own copy of react-native-gesture-handler.

image

Test

  • node .yarn/releases/yarn-4.1.0.cjs install --mode=skip-build
  • node .yarn/releases/yarn-4.1.0.cjs postinstall
  • node .yarn/releases/yarn-4.1.0.cjs lint --filter=@knocklabs/expo --filter=@knocklabs/react-native
  • node .yarn/releases/yarn-4.1.0.cjs type:check --filter=@knocklabs/expo --filter=@knocklabs/react-native (fails in @knocklabs/react-core with existing @knocklabs/client resolution errors unrelated to this diff)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

@JoaoPauloCMarra is attempting to deploy a commit to the Knock Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

🦋 Changeset detected

Latest commit: 3e91d55

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

@JoaoPauloCMarra JoaoPauloCMarra marked this pull request as ready for review April 2, 2026 17:31
@JoaoPauloCMarra JoaoPauloCMarra requested a review from a team as a code owner April 2, 2026 17:31
@JoaoPauloCMarra JoaoPauloCMarra requested review from connorlindsey and meryldakin and removed request for a team April 2, 2026 17:31
@kylemcd kylemcd requested review from kylemcd and removed request for connorlindsey and meryldakin April 2, 2026 18:08
@kylemcd
Copy link
Copy Markdown
Member

kylemcd commented Apr 2, 2026

Addresses the same issue raised in #928, applied there instead to avoid merge conflicts with the Expo SDK 55 version upgrades in #926

@kylemcd kylemcd closed this Apr 2, 2026
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