Skip to content

fix(import-wallet): keep seed input visible above the keyboard (ENG-85) - #644

Merged
bobodread876 merged 1 commit into
mainfrom
fix/eng-85-import-wallet-keyboard
Jun 20, 2026
Merged

bobodread876 merged 1 commit into
mainfrom
fix/eng-85-import-wallet-keyboard

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

Fixes #517 · ENG-85

Problem

On the wallet-import screen the 12 seed-word inputs render in a static FlatList (scrollEnabled={false}) inside a plain flex View, with the Complete button pinned at the bottom. Nothing scrolls or avoids the keyboard, so the on-screen keyboard hides the lower inputs — the user can't see what they're typing. (Confirmed still reproducing on main.)

Fix

Wrap the screen content in KeyboardAwareScrollView (the dep is already in package.json) so the focused input scrolls above the keyboard:

  • enableOnAndroid (the lib is iOS-only by default)
  • keyboardShouldPersistTaps="handled" (tap other inputs/button without dismissing first)
  • extraScrollHeight={20}, contentContainerStyle={{ flexGrow: 1, justifyContent: "space-between" }} to preserve the original "content top, button bottom" layout

The seed-grid FlatList and all styling are unchanged — only the wrapper is added.

Verification

  • Needs device verification (iOS + Android) per the acceptance criteria — I can't run the simulator here, so this is verified-by-construction, not on-device. Please confirm the focused word stays visible across keyboard heights on both platforms.

Notes

  • The inner FlatList is scrollEnabled={false} (a static 2-col grid), so nesting it in the scroll view is functionally fine but will emit the dev-only "VirtualizedLists should never be nested" warning. If you'd rather silence it, a follow-up can convert the static grid to a plain flex-wrap map — left out here to keep the layout byte-for-byte identical.
  • CI on flash-mobile main is currently red on pre-existing repo-wide debt (ENG-422-class / tsc backlog), unrelated to this one-file change.

🤖 Generated with Claude Code

The wallet-import screen rendered the 12 seed-word inputs in a static
FlatList inside a plain flex View, so the on-screen keyboard hid the
lower inputs (flash-mobile#517). Wrap the content in KeyboardAwareScrollView
(enableOnAndroid, keyboardShouldPersistTaps) so the focused input scrolls
above the keyboard on iOS and Android.

Fixes #517

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@linear

linear Bot commented Jun 18, 2026

Copy link
Copy Markdown

ENG-85

@islandbitcoin
islandbitcoin requested a review from Nodirbek75 June 18, 2026 19:46
@islandbitcoin islandbitcoin self-assigned this Jun 18, 2026
@bobodread876
bobodread876 merged commit fce3882 into main Jun 20, 2026
3 of 6 checks passed
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.

[Bug] - Keyboard is hiding text input when importing the wallet

2 participants