Repository navigation
fix(import-wallet): keep seed input visible above the keyboard (ENG-85) - #644
Merged
Merged
Conversation
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]>
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.
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 flexView, 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 onmain.)Fix
Wrap the screen content in
KeyboardAwareScrollView(the dep is already inpackage.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" layoutThe seed-grid
FlatListand all styling are unchanged — only the wrapper is added.Verification
Notes
FlatListisscrollEnabled={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-wrapmap— left out here to keep the layout byte-for-byte identical.mainis currently red on pre-existing repo-wide debt (ENG-422-class / tsc backlog), unrelated to this one-file change.🤖 Generated with Claude Code