Feedback form doesn't open on iOS while a native-stack sheet is presented
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
- #6882 @antonis による — マージされずにクローズ
評価
この issue はまだ評価されていません。
説明
Versions
@sentry/react-native 8.30.0, React Native 0.86.3 (New Architecture), Expo 57, expo-router 57.0.24, react-native-screens 4.26.2, iOS simulator.
What happens
On iOS, the feedback form doesn't appear when the current screen is a native-stack modal (we hit it on presentation: 'formSheet'). Shake-to-report and showFeedbackForm() both do nothing on those screens, and there's no JS error. The same calls work on regular screens.
The native log shows why:
Attempt to present <RCTFabricModalHostViewController> on <UIViewController> (from <UIViewController>) which is already presenting <RNSScreen>.
FeedbackFormProvider renders the form inside a React Native Modal. Because the provider sits at the app root (via Sentry.wrap), the Modal is presented from the root view controller. When a native-stack sheet is open, that controller is already presenting the sheet, so UIKit refuses the second presentation.
This is easy to miss: many apps open settings, payments and similar flows as sheets, and those are the screens where users can't report bugs.
Steps to reproduce
- App wrapped with
Sentry.wrap,feedbackIntegrationenabled, using a native stack (expo-router or@react-navigation/native-stack). - Open any screen with
presentation: 'formSheet'. - Call
Sentry.showFeedbackForm()or shake the device. - Nothing appears, and the "already presenting" message shows up in the device log.
What we did
On iOS we render the form inside FullWindowOverlay from react-native-screens instead of Modal. That adds the form above everything in the key window, including presented sheets, and typing, submitting and swipe-to-close all keep working. We left Android on Modal. Since the SDK can't assume react-native-screens is installed, an option to supply your own container for the form, or presenting from the topmost view controller, may be a better fit for the SDK.
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 371
- 平均マージ
- 22時間 3分
- マージ済み PR(30日)
- 106
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-react-native のほかの issue
-
React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getsentry/sentry-react-native#7073 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Improvement React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
getsentry/sentry-react-native#7055 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
React-Native Replays Task
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
getsentry/sentry-react-native#6680 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Improvement React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-react-native#6143 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
React-Native Task User Feedbacks
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
getsentry/sentry-react-native#5932 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-react-native の issue をすべて見る
似ている issue
-
area:config bug priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Doezer/Questarr#1451 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
sidebandstudio/clawtrate#1156 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
WenyuChiou/agent-board#1993 ·
メンテナーはふだん 1 日以内に返信
-
bug design
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Colorado-Startups/coloradostartups.org#151 ·
メンテナーはふだん 1 日以内に返信
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jarrodwatts/claude-hud#883 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信