Repository navigation
Transfersの乗換路線画像がAndroidで別路線のwebpになる問題を修正 - #5795
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
📝 WalkthroughWalkthroughsrc/components/Transfers.tsx ファイルで、react-native からのインポートを簡素化しました。Platform インポートを削除し、複数行のインポート定義を単一行に統合し、FlatList から Platform に基づいて条件付きで有効化されていた Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Contributor
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components/Transfers.tsx (1)
270-275:FlatList変更意図を1行コメントで残すと再発防止になります。この最適化を外した理由を近接コメントで明示しておくと、将来の最適化時に意図せず戻されるリスクを減らせます。
📝 提案差分
<TransfersHeading theme={theme} /> + {/* Android描画不具合回避のため、removeClippedSubviews は意図的に指定しない */} <FlatList contentContainerStyle={styles.transferView} data={lines}🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/components/Transfers.tsx` around lines 270 - 275, Add a one-line comment next to the FlatList usage explaining why the optimization was removed and the intent not to revert it inadvertently; reference the FlatList block that uses contentContainerStyle={styles.transferView}, data={lines}, keyExtractor and renderItem={renderTransferLine} and state explicitly that the change was intentional (e.g., performance/behavior tradeoff or platform bug) so future maintainers won't reintroduce the previous optimization by accident.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/components/Transfers.tsx`:
- Around line 270-275: Add a one-line comment next to the FlatList usage
explaining why the optimization was removed and the intent not to revert it
inadvertently; reference the FlatList block that uses
contentContainerStyle={styles.transferView}, data={lines}, keyExtractor and
renderItem={renderTransferLine} and state explicitly that the change was
intentional (e.g., performance/behavior tradeoff or platform bug) so future
maintainers won't reintroduce the previous optimization by accident.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: fe75706b-984c-4978-b19a-afd0f04ee13c
📒 Files selected for processing (1)
src/components/Transfers.tsx
This was referenced Apr 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
Transfersコンポーネントの乗換路線リストで、主にAndroid端末において別路線のwebp画像が一時的に表示される不具合を修正。原因
FlatListに指定していたremoveClippedSubviews={Platform.OS === 'android'}が原因。この最適化フラグはAndroidで画面外のネイティブViewをデタッチ/再アタッチするが、
expo-imageと組み合わせた際に再アタッチ時に古いsourceのwebpが残存して表示されるという既知の描画不具合がある。乗換路線リストはそもそも数件〜十数件程度のため、この最適化の恩恵は薄く、削除することで解決。
変更点
src/components/Transfers.tsxFlatListのremoveClippedSubviews指定を削除Platformの import を削除リグレッションリスク
removeClippedSubviews削除によるパフォーマンス劣化はほぼ発生しない想定。ローカル実行コマンド
npx biome check --unsafe --fix ./src/components/Transfers.tsx動作確認
🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート