Repository navigation
iPhoneでフィードバックモーダルが一瞬で消える問題を修正 - #6039
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changesプラットフォーム別TextInputフォーカス処理
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
概要
iPhone でフィードバックモーダルを開いた直後、モーダル本体だけが一瞬で消えてしまう不具合を修正します。
変更の種類
変更内容
TextInputのautoFocusを無効化し、CustomModalのonShowコールバック経由でアニメーション完了後にフォーカスを当てるよう変更KeyboardAvoidingViewのレイアウト再計算が走らないようにする背景
#6036 でフィードバックモーダルがハーフモーダルからセンタリング表示(
maxHeight: '75%')に変更されたことで、autoFocus={Platform.OS === 'ios'}によってモーダル開閉アニメーションと同時にキーボードが立ち上がり、KeyboardAvoidingViewのリフロー →Animated.Viewの opacity/scale 推移と競合してモーダルが一瞬で消えていました。以前の flex-end 配置では maxHeight 制約が効きにくく競合しなかったため顕在化していませんでした。SavePresetNameModalで既に同様の問題をonShow方式で解決済み(PR #5575)のため、同じパターンに揃えています。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit