Skip to content

Wrap modal content with KeyboardAvoidingView for better keyboard handling - #1978

Merged
MusabShakeel576 merged 1 commit into
qafrom
claude/fix-keyboard-otp-input-rWhty
Apr 22, 2026
Merged

Wrap modal content with KeyboardAvoidingView for better keyboard handling#1978
MusabShakeel576 merged 1 commit into
qafrom
claude/fix-keyboard-otp-input-rWhty

Conversation

@MusabShakeel576

Copy link
Copy Markdown
Contributor

Summary

Added KeyboardAvoidingView wrapper around the ScrollView in ResponsiveModal to improve keyboard handling on mobile platforms, preventing the keyboard from covering modal content.

Key Changes

  • Imported KeyboardAvoidingView from react-native
  • Wrapped the existing ScrollView component with KeyboardAvoidingView
  • Configured KeyboardAvoidingView to use padding behavior on iOS and height behavior on Android
  • Disabled the keyboard avoiding behavior on web platform where it's not needed

Implementation Details

  • The KeyboardAvoidingView is only enabled on native platforms (Platform.OS !== 'web')
  • Uses platform-specific behavior: padding for iOS (adjusts spacing) and height for Android (adjusts view height)
  • Maintains the existing flex layout styling by passing useNativeFlexLayout styles to the KeyboardAvoidingView
  • All existing ScrollView functionality and event handlers remain unchanged

https://claude.ai/code/session_01MGVdxsdT6kXH5nPgJJFLJo

Wrap ResponsiveModal's ScrollView in a KeyboardAvoidingView so the
keyboard pushes modal content up instead of obscuring the focused input
(e.g. the Two-Factor Authentication code entry).

https://claude.ai/code/session_01MGVdxsdT6kXH5nPgJJFLJo
@vercel

vercel Bot commented Apr 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
solid-app Ignored Ignored Apr 22, 2026 8:46am
solid-app-staging Ignored Ignored Apr 22, 2026 8:46am

Request Review

@MusabShakeel576
MusabShakeel576 merged commit 227b8ba into qa Apr 22, 2026
4 of 5 checks passed
@MusabShakeel576
MusabShakeel576 deleted the claude/fix-keyboard-otp-input-rWhty branch April 22, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants