Fix iOS scroll overscroll by reverting contentInsetAdjustmentBehavior to "never"#9
Fix iOS scroll overscroll by reverting contentInsetAdjustmentBehavior to "never"#9jameshaworthcs wants to merge 3 commits intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR bumps the app version to 1.2.8 and refactors TabScreenScrollView by removing iOS-specific focus/Platform logic, setting contentInsetAdjustmentBehavior to "never", and adding a BOTTOM_EXTRA_PADDING (16) into bottom padding calculations for banner spacing. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
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 unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
components/TabScreenScrollView.tsx (1)
51-53: HoistBOTTOM_EXTRA_PADDINGto module scope for consistency.This value is static; moving it near other layout constants avoids per-render redefinition and keeps sizing config centralized.
♻️ Suggested refactor
// VersionUpdateBanner height: padding (14*2) + content height (~24) ≈ 56px const VERSION_BANNER_HEIGHT = 56; +const BOTTOM_EXTRA_PADDING = 16; @@ - // Extra breathing room so content doesn't sit flush against the tab bar - const BOTTOM_EXTRA_PADDING = 16; - const totalBottomPadding = bottomInset + BOTTOM_EXTRA_PADDING +Also applies to: 56-56
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@components/TabScreenScrollView.tsx` around lines 51 - 53, Move the constant BOTTOM_EXTRA_PADDING out of the component render so it is defined at module scope alongside other layout constants; locate the local definition inside the TabScreenScrollView component (symbol: BOTTOM_EXTRA_PADDING) and remove it there, then add a top-level const BOTTOM_EXTRA_PADDING = 16 so the value is not re-created on each render and remains centralized with other sizing constants.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@components/TabScreenScrollView.tsx`:
- Around line 51-53: Move the constant BOTTOM_EXTRA_PADDING out of the component
render so it is defined at module scope alongside other layout constants; locate
the local definition inside the TabScreenScrollView component (symbol:
BOTTOM_EXTRA_PADDING) and remove it there, then add a top-level const
BOTTOM_EXTRA_PADDING = 16 so the value is not re-created on each render and
remains centralized with other sizing constants.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b2892cdc-9f39-4d5c-9604-f67897279f18
📒 Files selected for processing (2)
app.jsoncomponents/TabScreenScrollView.tsx
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Summary by CodeRabbit
Bug Fixes
Chores