Skip to content

Remove obsolete version checks#4284

Open
m-bert wants to merge 2 commits into
@mbert/touchable-hover-iosfrom
@mbert/remove-obsolete-ios-checks
Open

Remove obsolete version checks#4284
m-bert wants to merge 2 commits into
@mbert/touchable-hover-iosfrom
@mbert/remove-obsolete-ios-checks

Conversation

@m-bert

@m-bert m-bert commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR removes obsolete version checks from our iOS codebase.

Minimal targets for iOS and macOS were chosen based on supported versions. tvOS was changed to match iOS

Test plan

Checked that example apps (basic and macos) are built correctly,

Copilot AI review requested due to automatic review settings June 24, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes iOS/macOS version-gating in the native (Apple) implementation by raising the CocoaPods deployment targets and simplifying availability-guarded code paths accordingly.

Changes:

  • Updated RNGestureHandler.podspec to raise minimum deployment targets for iOS/tvOS/macOS.
  • Removed now-obsolete @available(...) checks and compile-time SDK guards around APIs that are guaranteed by the new minimum targets.
  • Simplified hover/large-content-viewer/feedback logic to always execute on supported platforms.

Reviewed changes

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

Show a summary per file
File Description
packages/react-native-gesture-handler/RNGestureHandler.podspec Raises Apple platform minimum deployment targets to match current support assumptions.
packages/react-native-gesture-handler/apple/RNGestureHandlerButtonComponentView.mm Removes iOS 13 availability checks for large-content-viewer accessibility properties.
packages/react-native-gesture-handler/apple/RNGestureHandlerButton.mm Makes hover recognizer setup and related helpers unconditional for supported iOS versions; simplifies macOS FPS query.
packages/react-native-gesture-handler/apple/Handlers/RNPanHandler.m Removes iOS 13.4 gating for trackpad scroll-type configuration on pan recognizer.
packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.m Removes SDK/version macro gating; keeps tvOS unsupported path while simplifying iOS hover setup.
packages/react-native-gesture-handler/apple/Handlers/RNHoverHandler.h Removes API_AVAILABLE annotation now implied by the deployment target.
packages/react-native-gesture-handler/apple/Handlers/RNForceTouchHandler.m Removes iOS 10 availability check for haptic feedback generator.

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

Comment thread packages/react-native-gesture-handler/apple/Handlers/RNPanHandler.m
@m-bert m-bert requested a review from j-piasecki June 24, 2026 14:26
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