Skip to content

Conversation

@chirag127
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade react-native-gesture-handler from 2.20.2 to 2.29.1.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 17 versions ahead of your current version.

  • The recommended version was released a month ago.

Release notes
Package name: react-native-gesture-handler

Snyk has created this PR to upgrade react-native-gesture-handler from 2.20.2 to 2.29.1.

See this package in npm:
react-native-gesture-handler

See this project in Snyk:
https://app.snyk.io/org/chirag127/project/17310c6d-296d-4441-aa51-943dec153281?utm_source=github&utm_medium=referral&page=upgrade-pr
@continue
Copy link

continue bot commented Dec 8, 2025

Keep this PR in a mergeable state →

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

@coderabbitai
Copy link

coderabbitai bot commented Dec 8, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-upgrade-ab8dd38b3c0ada6008ad721900f4ed0b

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link

Summary of Changes

Hello @chirag127, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the react-native-gesture-handler library to its latest stable version, 2.29.1. This significant upgrade incorporates a wide array of bug fixes, performance enhancements, and improved compatibility with recent React Native versions, ensuring a more robust and stable gesture handling experience across all platforms.

Highlights

  • Dependency Upgrade: The react-native-gesture-handler library has been upgraded from version 2.20.2 to 2.29.1.
  • Bug Fixes: Numerous bug fixes have been incorporated across Android (e.g., ripple effect, onTouches* callbacks, libfbjni.so exclusion), iOS (e.g., gestures not ending properly, GestureDetector on Text), and Web platforms (e.g., TextInput submission, hitslop, listener registration).
  • Performance and Stability: Issues such as gestures not activating due to outdated handler tags and Pressable's onPress being called on cancellation have been addressed, improving overall stability.
  • Compatibility: The update includes support for newer React Native versions, specifically 0.80, 0.81, and 0.82.
  • Component Refactors and Deprecations: The Pressable component has undergone a complete refactor, and the gestureHandlerRootHOC and ForceTouch gesture have been deprecated.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedreact-native-gesture-handler@​2.20.2 ⏵ 2.29.199 +110094 +199100

View full report

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request, automatically generated by Snyk, upgrades react-native-gesture-handler from version 2.20.2 to 2.29.1. This is a significant update, spanning 17 versions, and includes numerous bug fixes and improvements as detailed in the release notes.

The changes in package.json and package-lock.json are mostly correct. However, I've identified an inconsistency in the version specifier for the upgraded package between package.json and package-lock.json. While package.json uses a tilde (~), which is consistent with other dependencies in the project, package-lock.json has been updated to use a caret (^). This could lead to unintentional minor version upgrades in the future. I've left a specific comment with a suggestion to resolve this.

After addressing this, the PR should be good to merge. It's always good practice to perform thorough testing after such a large dependency jump to ensure no breaking changes affect the application.

"react-dom": "18.3.1",
"react-native": "0.82.1",
"react-native-gesture-handler": "~2.20.2",
"react-native-gesture-handler": "^2.29.1",

Choose a reason for hiding this comment

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

high

There's an inconsistency in the version specifier for react-native-gesture-handler. In package.json, the version is updated to ~2.29.1, but here in package-lock.json (for the root package dependencies), it's ^2.29.1.

The tilde ~ allows patch updates, while the caret ^ allows minor updates. This change in the lock file alters the versioning strategy for this package, which might not be intended and could lead to unexpected versions being installed in the future.

Please ensure the package-lock.json is consistent with package.json. The specifier here should probably be ~2.29.1 to match package.json and the project's apparent convention for many expo and react-native related packages.

Suggested change
"react-native-gesture-handler": "^2.29.1",
"react-native-gesture-handler": "~2.29.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants