react-navigation / react-navigation/react-navigation

[Android] "formSheet" displays above tab bar in nested layout

オープン
#12,925 コメント 4 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug platform:android repro provided
主要言語
TypeScript
スター
24.5k
フォーク
5.1k
平均マージ
1日 5時間
マージ済み PR(30日)
18

説明

Current behavior

When you have a Stack nested in a Tabs layout. Where the Stack has a Screen with presentation: 'formSheet', then on android it displays above the tab bar of the parent layout. On iOS it displays over the tab bar, thus hiding it which is what I expected it to do and believe should be the correct behavior.

I know that I can just move formSheet displayed screen outside of the tab layout and then it should work. However, I'm trying to have this form sheet control filters that affect the tab's primary content and those are populated through a context/provider that wraps the layout. I'm sure there are other ways to do this, but I think this should be addressed as suggested.

Image
Expected behavior

The formSheet screen should display over the tab bar. See previous screenshot for comparing iOS to Android behavior.

Reproduction

https://github.com/jermahs/github-issue-android-formsheet-with-tabs

Platform
  • Android
  • iOS
  • Web
  • Windows
  • MacOS
Packages
  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-drawer-layout
  • react-native-tab-view
Environment
  • [] I've removed the packages that I don't use
package version
expo-router ~6.0.21
@react-navigation/native ^7.1.8
@react-navigation/bottom-tabs ^7.4.0
react-native-screens ~4.16.0"
react-native-safe-area-context ~5.6.0
react-native-gesture-handler ~2.28.0
react-native-reanimated ~4.1.1
react-native 0.81.5
expo ~54.0.31
node v20.19.4
npm or yarn pnpm

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

リンクされた再現手順から始め、ネストされた画面が presentation: 'formSheet' を使用する場合の Android における @react-navigation/bottom-tabs と @react-navigation/native-stack の相互作用を調査してください。Android の結果を iOS と比較し、フォームシートが親のタブバーを覆い、説明されているフィルターコンテキストを壊さないことを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native, typescript
領域
frontend, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。