Skip to content

Support React Native 0.86#4166

Draft
m-bert wants to merge 2 commits into
mainfrom
@mbert/support-86
Draft

Support React Native 0.86#4166
m-bert wants to merge 2 commits into
mainfrom
@mbert/support-86

Conversation

@m-bert
Copy link
Copy Markdown
Collaborator

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

Description

This PR brings support for React Native 0.86

Required changes

Status

  • 0.86.0-rc.0 ✅

Test plan

Tested that basic-example builds and works correctly.

Copilot AI review requested due to automatic review settings May 11, 2026 13:19
@m-bert m-bert added the New React Native version support This pull request aims to bring support for new React Native version label May 11, 2026
@m-bert m-bert marked this pull request as draft May 11, 2026 13:20
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 the repo and example apps to support React Native 0.86 (rc), including dependency bumps and an iOS-native event dispatch change to avoid calling into non-callable JS modules on Fabric-only RN 0.86+.

Changes:

  • Bump React Native (and related tooling) to 0.86.0-rc.0 in the library dev setup and basic-example.
  • Update iOS native animated event delivery to go through the event dispatcher’s observer pathway (instead of JS-facing direct events).
  • Refresh lockfiles (Yarn + CocoaPods) for the upgraded dependency graph.

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
yarn.lock Large dependency graph update consistent with RN 0.86 rc + tooling bumps.
packages/react-native-gesture-handler/package.json Updates devDependencies/testing presets and RN version used for development/testing.
packages/react-native-gesture-handler/apple/RNGestureHandlerManager.mm Changes native animated event dispatch to use dispatcher observers (RN 0.86 Fabric-only compatibility).
apps/basic-example/package.json Bumps basic-example to RN 0.86.0-rc.0 and aligned RN toolchain packages.
apps/basic-example/ios/Podfile.lock Updates pods to match RN 0.86 rc and related native deps.
apps/basic-example/ios/BasicExample.xcodeproj/project.pbxproj Adds build settings, including a problematic absolute PODFILE_DIR path.

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

Comment on lines +476 to +479
// observer mechanism. We don't go through sendEvent: because that also
// dispatches the event to JS via RCTEventEmitter.receiveEvent, which is no
// longer a registered callable module in RN 0.86+ (Fabric-only).
[_eventDispatcher notifyObserversOfEvent:event];
"$(inherited)",
" ",
);
PODFILE_DIR = "/Users/michal/work/react-native-gesture-handler/apps/basic-example/ios";
"$(inherited)",
" ",
);
PODFILE_DIR = "/Users/michal/work/react-native-gesture-handler/apps/basic-example/ios";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New React Native version support This pull request aims to bring support for new React Native version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants