ionic-team / ionic-team/ionic-framework

bug: Ionic React tabs swipe back animation broken

未关闭
#30,191 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

App with routes outside tabs:
when you navigate to a route outside the tabs the ion back button works great, but using the swipe back animation doesnt show the previous page for a moment (works in ionic angular).
In the video you can see on the first try going back using the back button and then using a swipe

https://github.com/user-attachments/assets/af61c792-ef0d-42f7-bc6a-77524b4d8e3f

### Expected Behavior

Going back using the back button or by using the swipe back should work the same

### Steps to Reproduce

set app to mode "ios"
https://stackblitz.com/edit/sb1-uv8yxpms?file=src%2FApp.tsx

### Code Reproduction URL

https://stackblitz.com/edit/sb1-uv8yxpms?file=src%2FApp.tsx

### Ionic Info

"@ionic/react": "^8.4.3",
"@ionic/react-router": "^8.4.3",
"ionicons": "^7.2.2",
"lucide-react": "^0.344.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router": "^5.3.4",
"react-router-dom": "^5.3.4"

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

Start with the linked StackBlitz reproduction and its src/App.tsx in iOS mode. Compare the back-button and swipe-back transitions when navigating from tabs to an outside route. Done means both navigation methods show the previous page consistently during the back animation.

由索引模型根据 Issue 内容生成。

评估

技术栈
react, typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。