Skip to content

feat: upgrade to RN v0.89 - #1261

Draft
krozniata wants to merge 2 commits into
mainfrom
feat/089-upgrade
Draft

krozniata wants to merge 2 commits into
mainfrom
feat/089-upgrade

Conversation

@krozniata

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings November 18, 2026 13:01

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.

🟡 Changes recommended

The example upgrades to React Native 0.89.0-rc.2 while its animation packages only declare support through 0.88, leaving an unmet peer dependency until compatible releases and a regenerated lockfile are provided.

1 open issue
What changed in this PR

This PR upgrades the repository and example app from React Native 0.88 to 0.89.0-rc.2, updating native project configuration, documentation, and dependency lockfiles.

Changes:

  • Updates React Native, CLI tooling, Android, iOS, Hermes, Metro, and CocoaPods dependencies.
  • Refreshes the example app's Android and iOS template configuration.
  • Updates documented React Native compatibility and native-animation workaround comments.
  • The example retains Reanimated and Worklets versions whose declared peer range supports only React Native through 0.88.
File Description
README.md Updates the supported React Native version range.
package.json Upgrades root React Native development dependencies and tooling.
ios/​RNCPagerViewComponentView.mm Clarifies the native-driven animation event workaround.
example/​package.json Upgrades the example app and CLI tooling to React Native 0.89.0-rc.2 while retaining the existing animation dependencies.
example/​ios/​Podfile.lock Refreshes CocoaPods dependency versions and checksums for React Native 0.89.
example/​ios/​PagerViewExample/​Info.plist Applies updated React Native iOS template settings.
example/​android/​build.gradle Updates Android SDK, NDK, build tools, and Kotlin configuration.
example/​android/​app/​src/​main/​java/​com/​pagerviewexample/​MainActivity.kt Adopts the React Native 0.89 activity delegate API.
docs/​docs/​docs/​getting-started/​installation.mdx Updates the documented React Native compatibility range.
bun.lock Regenerates JavaScript dependency resolutions and integrity data.

Review effort: Lite

Comment thread example/package.json
"@react-navigation/native-stack": "^7.20.0",
"react": "19.3.0",
"react-native": "0.88.0",
"react-native": "0.89.0-rc.2",
@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 new finding on 081ddf0. The verdict and the full list are in the summary comment.

Comment on lines +66 to +67
<key>RCTUseAssetCatalog</key>
<true/>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Minor · RCTUseAssetCatalog enabled in an app that has no asset catalog

RCTUseAssetCatalog is enabled but the app has no .xcassets or ASSETCATALOG_COMPILER_* build setting, so plain Metro-bundled JS assets like require('../../assets/tabView/album-art-1.jpg') can stop rendering in the Coverflow and TabView examples and e2e screenshots. The flag switches asset resolution to the catalog-backed path while no catalog exists.

Suggested change

Either add Assets.xcassets and the ASSETCATALOG_COMPILER build settings (as the RN template does), or drop RCTUseAssetCatalog from the example Info.plist until the catalog exists; if the flag is intentionally opt-in for this app, say so in the PR.

Details

persona: senior-developer, jvm

Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.

Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🟢 e2e: 65 passed

All 65 tests in 25 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 37.6s
🟢 basic pager › in LTR › pages horizontally 22.1s
🟢 basic pager › in LTR › pages vertically 2.9s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 12.6s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 15.1s
🟢 setPage called behind a native-stack modal lands on the requested page 15.1s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 3.2s
🟢 outer pager stays responsive after its page count changes around a nested pager 3.2s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 7 passed 21.8s
🟢 leaving a page with setPage blurs its input 3.8s
🟢 setPage with an input focused lands on the target page 3.2s
🟢 leaving a page with a swipe blurs its input 1.7s
🟢 an input focused on the new page keeps focus 3.4s
🟢 an input focused on the new page keeps focus going back 4.6s
🟢 a swipe keeps the focus the new page takes from onPageSelected 3.1s
🟢 setPage keeps the focus the new page takes from onPageSelected 2.1s
🟢 tests/issues/issue-1156-nested-horizontal-scroll.e2e.ts · 3 passed 5.5s
🟢 a horizontal ScrollView in a page scrolls instead of the pager 1.9s
🟢 the pager takes the swipe once the ScrollView is at its edge 2.2s
🟢 a swipe outside the ScrollView changes the page 1.4s
🟢 tests/issues/issue-1196-set-page-after-add.e2e.ts · 6 passed 16.8s
🟢 setPageWithoutAnimation selects a page added in the same commit 1.7s
🟢 setPage animates to a page added in the same commit 1.9s
🟢 setPage from useEffect animates to a page added in the same commit 1.8s
🟢 setPageWithoutAnimation selects a page added to an empty pager in the same commit 2.0s
🟢 an index that is not there yet is ignored, not applied later 3.9s
🟢 pages that come back report the page the pager lands on once 5.6s
🟢 tests/issues/issue-1199-scroll-state.e2e.ts · 2 passed 3.0s
🟢 setPage reports settling, then idle once the page has stopped 1.8s
🟢 a swipe reports settling when the finger lifts, then idle once the page has stopped 1.2s
🟢 tests/issues/issue-1205-diagonal-swipe.e2e.ts · 2 passed 3.3s
🟢 a slanted, mostly vertical drag scrolls the list 1.7s
🟢 a slanted, mostly horizontal drag changes the page 1.6s
🟢 tests/issues/issue-1229-text-input-cursor.e2e.ts · 5 passed 10.3s
🟢 a tap that moves places the cursor in the input above the pager 1.7s
🟢 a tap that moves places the cursor in a single-line input on a page 1.9s
🟢 a tap that moves places the cursor in a single-line input on a page with scrolling disabled 2.4s
🟢 a tap that moves places the cursor in a multiline input on a page 1.7s
🟢 a tap that moves places the cursor in a multiline input on a page with scrolling disabled 2.6s
🟢 tests/issues/issue-1248-clipped-text-scroll.e2e.ts · 2 passed 3.8s
🟢 an upward drag over clipped text scrolls the list 1.4s
🟢 a nested vertical list keeps its own drag 2.3s
🟢 tests/issues/issue-1250-page-selected-timing.e2e.ts · 2 passed 3.1s
🟢 setPage reports the selected page before it starts moving 1.9s
🟢 a flick reports the selected page when the finger lifts 1.1s
🟢 tests/issues/issue-219-empty-pager.e2e.ts · 2 passed 5.6s
🟢 a pager that mounts empty shows its pages when they arrive and come back 3.5s
🟢 setPage works as soon as pages arrive in a pager that mounted empty 2.1s
🟢 tests/issues/issue-424-swipe-cancels-press.e2e.ts · 3 passed 8.9s
🟢 a tap on a button in a page presses it 1.4s
🟢 a swipe that starts on a button in a page cancels its touch 1.4s
🟢 a swipe while the JS thread is busy does not press the button 6.2s
🟢 tests/issues/issue-965-pages-before-current.e2e.ts · 6 passed 11.3s
🟢 inserting a page before the current one keeps it visible 1.7s
🟢 inserting a page at the current index keeps the current page 1.9s
🟢 removing a page before the current one keeps it visible 1.8s
🟢 removing pages up to the current index keeps it visible 1.5s
🟢 moving the current page keeps it visible 1.7s
🟢 moving a page next to the current one keeps it rendered 2.6s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 4.2s
🟢 a pager remounted after its screen was covered starts on its own initialPage 4.2s
🟢 tests/issues/pr-1241-switch-state-restore.e2e.ts · 1 passed 4.7s
🟢 a page that comes back keeps the switch value React set while it was away 4.7s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 6.8s
🟢 on-drag: dragging the pager blurs the input 2.1s
🟢 on-drag: setPage keeps the input focused 2.3s
🟢 none: dragging the pager keeps the input focused 2.3s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 13.8s
🟢 setPage mounts the target and its neighbours only 2.8s
🟢 swiping mounts the next neighbour 3.0s
🟢 preload distance 0 mounts only the pages visited 3.0s
🟢 a visited page keeps its scroll position 5.1s
🟢 tests/material-top-bar.e2e.ts · 1 passed 6.4s
🟢 material top tabs survive a native-stack push and pop 6.4s
🟢 tests/memo-pages.e2e.ts · 1 passed 3.3s
🟢 memoized pages do not re-render with the pager 3.3s
🟢 tests/native-driver-events.e2e.ts · 2 passed 4.1s
🟢 native driver events › setPage through the Animated ref drives the native value 2.7s
🟢 native driver events › a swipe drives the native value 1.4s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 5.2s
🟢 nested horizontal and vertical pagers scroll independently 5.2s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 10.7s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 10.7s
🟢 tests/set-page-animation.e2e.ts · 4 passed 28.4s
🟢 ltr › direct setPage selects only the target page (ltr) 3.1s
🟢 rtl › direct setPage selects only the target page (rtl) 10.8s
🟢 the page next to the target is selectable after a direct setPage 11.2s
🟢 scroll setPage passes the pages in between, direct setPage does not 3.3s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 5.1s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 5.1s

Tested by e2e 0.23.1 · 4m 3s · android · run artifacts

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🟢 e2e ios-spm: 49 passed

All 49 tests in 18 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 1m 21s
🟢 basic pager › in LTR › pages horizontally 41.2s
🟢 basic pager › in LTR › pages vertically 11.6s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 27.8s
🟢 tests/issues/issue-1050-back-gesture.e2e.ts · 8 passed 1m 23s
🟢 back gesture over the pager › in LTR › a back swipe on the first page pops the screen 25.7s
🟢 back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page 5.2s
🟢 back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page 2.9s
🟢 back gesture over the pager › in RTL › a back swipe on the first page pops the screen 19.0s
🟢 back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page 6.2s
🟢 back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page 3.6s
🟢 back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack 17.3s
🟢 back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page 2.9s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 7.3s
🟢 setPage called behind a native-stack modal lands on the requested page 7.3s
🟢 tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed 9.4s
🟢 keyboard avoidance does not shrink the page under the keyboard 9.4s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 4.7s
🟢 outer pager stays responsive after its page count changes around a nested pager 4.7s
🟢 tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed 6.1s
🟢 FlatList inside the pager gets the search bar safe-area insets 6.1s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 14 passed 1m 57s
🟢 leaving a page with setPage blurs its input 5.8s
🟢 setPage with an input focused lands on the target page 6.8s
🟢 a setPage two pages away lands on the far page 7.6s
🟢 a setPage repeated during the slide changes nothing 8.2s
🟢 leaving a page with a swipe blurs its input 7.0s
🟢 an input focused on the new page keeps focus 8.9s
🟢 a swipe keeps the focus the new page takes from onPageSelected 8.9s
🟢 a setPage that interrupts another lands on the page asked for last 6.0s
🟢 a setPage back to the page a slide is passing lands there 3.8s
🟢 a setPage that interrupts another still lands on the later page 6.7s
🟢 a setPage redirected once the focus has landed blurs it 6.4s
🟢 two setPage calls that cancel out land on the first page 6.7s
🟢 right to left › leaving a page with a swipe blurs its input 16.8s
🟢 a page that grows with the keyboard still lands on the target page 17.8s
🟢 tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed 3.4s
🟢 a pager scrolled to a focused field still lands on the page asked for 3.4s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 4.9s
🟢 a pager remounted after its screen was covered starts on its own initialPage 4.9s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 13.5s
🟢 on-drag: dragging the pager blurs the input 4.0s
🟢 on-drag: setPage keeps the input focused 4.2s
🟢 none: dragging the pager keeps the input focused 5.3s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 42.0s
🟢 setPage mounts the target and its neighbours only 8.7s
🟢 swiping mounts the next neighbour 9.8s
🟢 preload distance 0 mounts only the pages visited 10.2s
🟢 a visited page keeps its scroll position 13.3s
🟢 tests/material-top-bar.e2e.ts · 1 passed 11.7s
🟢 material top tabs survive a native-stack push and pop 11.7s
🟢 tests/memo-pages.e2e.ts · 1 passed 6.8s
🟢 memoized pages do not re-render with the pager 6.8s
🟢 tests/native-driver-events.e2e.ts · 2 passed 5.7s
🟢 native driver events › setPage through the Animated ref drives the native value 3.5s
🟢 native driver events › a swipe drives the native value 2.1s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 8.7s
🟢 nested horizontal and vertical pagers scroll independently 8.7s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 14.9s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 14.9s
🟢 tests/set-page-animation.e2e.ts · 4 passed 36.0s
🟢 ltr › direct setPage selects only the target page (ltr) 4.2s
🟢 rtl › direct setPage selects only the target page (rtl) 15.8s
🟢 the page next to the target is selectable after a direct setPage 13.0s
🟢 scroll setPage passes the pages in between, direct setPage does not 3.0s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 8.2s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 8.2s

Tested by e2e 0.23.1 · 7m 45s · ios · run artifacts

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🟢 e2e ios: 49 passed

All 49 tests in 18 files
Test Time
🟢 tests/basic-pager.e2e.ts · 3 passed 1m 18s
🟢 basic pager › in LTR › pages horizontally 46.4s
🟢 basic pager › in LTR › pages vertically 10.7s
🟢 basic pager › in RTL › pages horizontally with the reversed gesture 21.3s
🟢 tests/issues/issue-1050-back-gesture.e2e.ts · 8 passed 1m 20s
🟢 back gesture over the pager › in LTR › a back swipe on the first page pops the screen 18.3s
🟢 back gesture over the pager › in LTR › a back swipe on a later page goes to the previous page 6.1s
🟢 back gesture over the pager › in LTR › a forward swipe on the first page still goes to the next page 3.6s
🟢 back gesture over the pager › in RTL › a back swipe on the first page pops the screen 18.7s
🟢 back gesture over the pager › in RTL › a back swipe on a later page goes to the previous page 5.2s
🟢 back gesture over the pager › in RTL › a forward swipe on the first page still goes to the next page 3.2s
🟢 back gesture over a pager in a nested stack › a back swipe on the first page pops the outer stack 19.5s
🟢 back gesture over a pager in a nested stack › a forward swipe on the first page still goes to the next page 5.1s
🟢 tests/issues/issue-1083-modal-set-page.e2e.ts · 1 passed 8.4s
🟢 setPage called behind a native-stack modal lands on the requested page 8.4s
🟢 tests/issues/issue-1096-keyboard-shrink.e2e.ts · 1 passed 13.2s
🟢 keyboard avoidance does not shrink the page under the keyboard 13.2s
🟢 tests/issues/issue-1098-nested-pager.e2e.ts · 1 passed 8.1s
🟢 outer pager stays responsive after its page count changes around a nested pager 8.1s
🟢 tests/issues/issue-1142-search-bar-inset.e2e.ts · 1 passed 6.7s
🟢 FlatList inside the pager gets the search bar safe-area insets 6.7s
🟢 tests/issues/issue-1154-page-change-focus.e2e.ts · 14 passed 2m 16s
🟢 leaving a page with setPage blurs its input 7.7s
🟢 setPage with an input focused lands on the target page 7.0s
🟢 a setPage two pages away lands on the far page 6.7s
🟢 a setPage repeated during the slide changes nothing 8.3s
🟢 leaving a page with a swipe blurs its input 6.6s
🟢 an input focused on the new page keeps focus 9.1s
🟢 a swipe keeps the focus the new page takes from onPageSelected 9.1s
🟢 a setPage that interrupts another lands on the page asked for last 7.5s
🟢 a setPage back to the page a slide is passing lands there 4.9s
🟢 a setPage that interrupts another still lands on the later page 8.0s
🟢 a setPage redirected once the focus has landed blurs it 7.0s
🟢 two setPage calls that cancel out land on the first page 6.6s
🟢 right to left › leaving a page with a swipe blurs its input 23.1s
🟢 a page that grows with the keyboard still lands on the target page 24.9s
🟢 tests/issues/issue-1230-pager-between-pages.e2e.ts · 1 passed 4.7s
🟢 a pager scrolled to a focused field still lands on the page asked for 4.7s
🟢 tests/issues/pr-1194-remount-initial-page.e2e.ts · 1 passed 7.4s
🟢 a pager remounted after its screen was covered starts on its own initialPage 7.4s
🟢 tests/keyboard-dismiss-mode.e2e.ts · 3 passed 20.7s
🟢 on-drag: dragging the pager blurs the input 6.5s
🟢 on-drag: setPage keeps the input focused 6.1s
🟢 none: dragging the pager keeps the input focused 8.2s
🟢 tests/lazy-pager-view.e2e.ts · 4 passed 50.0s
🟢 setPage mounts the target and its neighbours only 10.6s
🟢 swiping mounts the next neighbour 12.4s
🟢 preload distance 0 mounts only the pages visited 11.7s
🟢 a visited page keeps its scroll position 15.3s
🟢 tests/material-top-bar.e2e.ts · 1 passed 15.7s
🟢 material top tabs survive a native-stack push and pop 15.7s
🟢 tests/memo-pages.e2e.ts · 1 passed 7.7s
🟢 memoized pages do not re-render with the pager 7.7s
🟢 tests/native-driver-events.e2e.ts · 2 passed 9.1s
🟢 native driver events › setPage through the Animated ref drives the native value 5.6s
🟢 native driver events › a swipe drives the native value 3.5s
🟢 tests/nested-pager-view.e2e.ts · 1 passed 10.6s
🟢 nested horizontal and vertical pagers scroll independently 10.6s
🟢 tests/scrollable-pager-view.e2e.ts · 1 passed 17.7s
🟢 pager inside a ScrollView keeps its page across vertical scrolls 17.7s
🟢 tests/set-page-animation.e2e.ts · 4 passed 49.5s
🟢 ltr › direct setPage selects only the target page (ltr) 5.3s
🟢 rtl › direct setPage selects only the target page (rtl) 18.5s
🟢 the page next to the target is selectable after a direct setPage 21.1s
🟢 scroll setPage passes the pages in between, direct setPage does not 4.6s
🟢 tests/tab-view-inside-scroll-view.e2e.ts · 1 passed 12.1s
🟢 TabView inside a ScrollView swipes tabs and scrolls the page 12.1s

Tested by e2e 0.23.1 · 8m 58s · ios · run artifacts

@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 8da5f60

Since the review of 081ddf0: 1 new · 0 still open · 0 no longer raised

1 finding(s): 1 minor.

🟡 Minor (1)

Where Finding
ios/RNCPagerViewComponentView.mm:101 🆕 onPageScroll event coalescing dropped on iOS
Not in the reviewers' prompt (2 files)
  • bun.lock: left out as an asset or for its size; reviewers could still search it
  • example/ios/Podfile.lock: left out as an asset or for its size; reviewers could still search it

3 findings below minor hidden (user_settings.min_severity).

Reviewed with this repository's own Sentinel configuration (3a44ca5c9446).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 new finding on 8da5f60. The verdict and the full list are in the summary comment.

Comment on lines +101 to +103
// C++ Native Animated reads only folly::dynamic payloads, not the codegen'd
// typed onPageScroll, so this one dispatch feeds both JS and Animated.event.
eventEmitter->dispatchEvent("pageScroll", folly::dynamic::object("position", static_cast<double>(position))("offset", offset));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🆕 🟡 Minor · onPageScroll event coalescing dropped on iOS

During a fling, every intermediate onPageScroll offset is now dispatched to the Animated driver and JS listener instead of only the latest one. dispatchEvent has no coalescing, unlike the deleted RCTOnPageScrollEvent which had canCoalesce = YES and coalesceWithEvent: keeping the newest event.

Details

persona: swift-ios, senior-developer

Useful? Reply @apex-sentinel-staging like, or @apex-sentinel-staging dislike <why> if it is not.

Reply @apex-sentinel-staging note ... to add context, or @apex-sentinel-staging pivot ... if it is wrong — I will re-check the cited code.

This branch has not been deployed

No deployments
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