[BottomSheet] `@react-navigation/stack` header draws over an open sheet on iOS
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- ios, react-native
- 领域
- mobile
调研方向
Start with the linked reproduction and compare the js-stack and native-stack paths on iOS, focusing on the inline BottomSheet beside NavigationContainer and the header layering at the content detent. Done means the js-stack header is covered by the open sheet up to its top edge, matching native-stack, without changing the reported reproduction setup.
由索引模型根据 Issue 内容生成。
描述
Reproduction
https://github.com/kilarsky/swm-bottom-sheet-stack-header-above-sheet-repro
The content is a FlatList of 30 items on the default detents ([0, 'content']). No
extra props, no wrapper.
- Launch the app with js-stack selected.
- Tap Open sheet.
- Look at the top edge of the sheet where it meets the navigation header.
- Close the sheet, tap native-stack, and open the sheet again.
Summary
I put an inline BottomSheet next to NavigationContainer and open it to the content
detent, which reaches its full height. The @react-navigation/stack header keeps
drawing on top of the sheet. Everything else on the screen goes under it.
Point the same screen at @react-navigation/native-stack and the sheet covers the
header up to the sheet's top edge.

Expected
The sheet covers the header the same way it covers the rest of the screen.
Actual
| Host | Header while the sheet is open |
|---|---|
js-stack |
draws over the sheet |
native-stack |
covered by the sheet |
Environment
| Package | Version |
|---|---|
@swmansion/react-native-bottom-sheet |
0.16.2 |
@react-navigation/stack |
7.10.22 |
@react-navigation/native-stack |
7.18.9 |
@react-navigation/native |
7.3.16 |
iOS only.
npx expo-env-info
expo-env-info 2.1.0 environment info:
System:
OS: macOS 26.5.2
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.18.0 - /usr/local/bin/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.9.3 - /usr/local/bin/npm
Watchman: 2025.09.15.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.16.2 - /Users/.../.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 25.5, iOS 26.5, macOS 26.5, tvOS 26.5, visionOS 26.5, watchOS 26.5
IDEs:
Android Studio: 2026.1 AI-261.26222.65.2613.16025427
Xcode: 26.5/17F42 - /usr/bin/xcodebuild
npmPackages:
expo: ~57.0.15 => 57.0.15
react: 19.2.3 => 19.2.3
react-native: 0.86
npx expo-doctor
21/21 checks passed. No issues detected!
- 主要语言
- Kotlin
- 星标
- 536
- 派生
- 24
- 平均合并
- 12 小时 10 分钟
- 30 天内合并 PR
- 22
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
software-mansion/react-native-bottom-sheet 的其他 Issue
-
Android: NoSuchElementException in ScrollIndicators.refit when a scroll view is garbage collected未关闭
难度 2/5 1-3 小时 新手友好度 88/100
software-mansion/react-native-bottom-sheet#140 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 35/100
software-mansion/react-native-bottom-sheet#137 ·
维护者通常 1 天内回复
-
Feature request: opt-in native keyboard avoidance可能已有人在做 @Asad-Butt 于 5 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 22/100
software-mansion/react-native-bottom-sheet#134 · 1 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 48/100
software-mansion/react-native-bottom-sheet#132 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
software-mansion/react-native-bottom-sheet#64 · 1 条评论 ·
维护者通常 1 天内回复
查看 software-mansion/react-native-bottom-sheet 的全部 Issue
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 86/100
thisisartman/Meguri#211 ·
维护者通常 1 天内回复
-
follow-up
难度 1/5 1 小时以内 新手友好度 75/100
维护者通常 1 天内回复
-
area:android fleet
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复