fix: private key scroll#27891
Conversation
…/metamask-mobile into gar/fix/private-keys-ux
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #27891 +/- ##
==========================================
+ Coverage 82.60% 82.63% +0.03%
==========================================
Files 4839 4854 +15
Lines 124418 125103 +685
Branches 27726 27922 +196
==========================================
+ Hits 102774 103378 +604
- Misses 14580 14603 +23
- Partials 7064 7122 +58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey @gantunesr, thanks for extending the functionality of the BottomSheetDialog. I was wondering if we can make this somewhat more future proofed to allow for all PanGestureHandler props via a prop object? Some of my code suggestions may be sudo-code and need formatting or testing.
@MetaMask/design-system-engineers we will need to do this to the MMDS version as well
|
The new introduced code is 100% tested |
The |
mathieuartu
left a comment
There was a problem hiding this comment.
Looks good, haven't tested
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
The
No other tags are warranted since the BottomSheet change is non-breaking and additive, and the PrivateKeyList change is scoped to the private key/SRP export flow. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
Fix scroll in the "Private Key" list for Android devices
Changelog
CHANGELOG entry: fix scroll in the "Private Key" list for Android devices
Related issues
Fixes: #27192
Fixes: https://consensyssoftware.atlassian.net/browse/MUL-1552
Manual testing steps
Screenshots/Recordings
Before
Check #27192
After
Screen.Recording.2026-03-24.at.6.11.56.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches shared
BottomSheet/BottomSheetDialoggesture handling by forwarding arbitraryPanGestureHandlerprops, which could subtly change swipe-to-dismiss behavior across consumers (especially on Android). Changes are localized but affect a common UI primitive.Overview
Fixes Android scrolling in the Private Key list bottom sheet by allowing callers to pass
PanGestureHandlerconfiguration down intoBottomSheetDialogand wiringPrivateKeyListto usesimultaneousHandlerswith the list’s RNGHScrollViewref so scroll gestures don’t trigger sheet dismissal.Updates/extends tests to cover the new
panGestureHandlerPropsplumbing and adds broaderPrivateKeyListbehavior assertions (error reset, banner content, cancel navigation, SOL-only filtering, and Android-specific rendering).Written by Cursor Bugbot for commit f72fa25. This will update automatically on new commits. Configure here.