Skip to content

fix: resolve screen transition stutter with native stack#345

Merged
eeee0717 merged 3 commits intoCherryHQ:mainfrom
chengcheng84:hotfix/navigation-performance
Mar 14, 2026
Merged

fix: resolve screen transition stutter with native stack#345
eeee0717 merged 3 commits intoCherryHQ:mainfrom
chengcheng84:hotfix/navigation-performance

Conversation

@chengcheng84
Copy link
Copy Markdown
Contributor

@chengcheng84 chengcheng84 commented Mar 3, 2026

问题描述

切换动画会卡一下

相关Issue

#111 #116

解决方案

改用 @react-navigation/native-stack,解决卡顿问题

测试情况

  • Android: 已测试 Android 16
  • iOS: 麻烦作者帮忙一下

待讨论

  1. 动画速度:默认动画好像比之前快了一点,需要调慢吗? 可能是个人感觉
  • gestureResponseDistance: 9999 这个感觉没必要,我没加。如果作者觉得需要可以再加。

其他解决方案

react-navigation/react-navigation#10179 (但是这个用 detachPreviousScreen: false好像点击之后要一会才反应)

#349 好像也不会了

@eeee0717
Copy link
Copy Markdown
Collaborator

eeee0717 commented Mar 8, 2026

gestureResponseDistance: 9999这个是让ios可以全屏左滑返回的,ios必须得设置才能全屏,可以加一个安卓改动前后的视频 我看看效果。

@chengcheng84
Copy link
Copy Markdown
Contributor Author

chengcheng84 commented Mar 14, 2026

Before

#353

Now

image

还有这个OK吗

gestureEnabled: true,
gestureResponseDistance: {
start: 9999,
end: 9999}

@eeee0717 eeee0717 merged commit 3923ec4 into CherryHQ:main Mar 14, 2026
1 check passed
@chengcheng84 chengcheng84 deleted the hotfix/navigation-performance branch March 14, 2026 06:48
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