Skip to content

Conversation

georgeweiler
Copy link
Contributor

@georgeweiler georgeweiler commented Sep 29, 2025

Description

This reverts commit d4a5f6f.

  • Region list refactor: Replace custom touchable row in RegionSelectorModal.tsx with ListItemSelect
  • Removes TouchableWithoutFeedback + manual selected/disabled styling.
  • Trims FlatList props (removes removeClippedSubviews, scrollEnabled, nestedScrollEnabled).
  • Simplifies style sheet; drops theme color usage and selectedItem/disabledItem rules.
  • Adjusts listItem padding
  • Tests: Updates snapshots to reflect new list item component and visuals.

Changelog

CHANGELOG entry: Refactored region selector to use ListItemSelect component, removing custom touchable implementation and simplifying styling and FlatList configuration.

Related issues

Fixes:

Manual testing steps

Feature: Deposit Region Selection on Android

  Scenario: user clicks the region button on the deposit feature
    Given user is on an android device

    When user scrolls the region list and selects a region
    Then region modal should close and display the user's choice

Screenshots/Recordings

Before

before_rs

After

after_rs
screen-20250930-094629.mp4

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Refactors RegionSelectorModal to use ListItemSelect for region rows, simplifies styles (removes theme-based item states, adjusts padding), and drops extra FlatList props with snapshots updated.

  • Deposit UI:
    • Region list refactor: Replace custom touchable row in RegionSelectorModal.tsx with ListItemSelect (uses isSelected, disabled, built-in selection visuals).
      • Removes TouchableWithoutFeedback + manual selected/disabled styling.
      • Trims FlatList props (removes removeClippedSubviews, scrollEnabled, nestedScrollEnabled).
    • Styles (RegionSelectorModal.styles.ts):
      • Simplifies style sheet; drops theme color usage and selectedItem/disabledItem rules.
      • Adjusts listItem padding (paddingVertical: 8).
    • Tests: Updates snapshots to reflect new list item component and visuals.

Written by Cursor Bugbot for commit 8fc31d8. This will update automatically on new commits. Configure here.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-ramp issues related to Ramp features label Sep 29, 2025
@georgeweiler georgeweiler added QA Passed QA testing has been completed and passed Run Smoke E2E Requires smoke E2E testing no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed and removed team-ramp issues related to Ramp features labels Sep 29, 2025
Copy link

@georgeweiler georgeweiler marked this pull request as ready for review September 30, 2025 01:56
@georgeweiler georgeweiler requested a review from a team as a code owner September 30, 2025 01:56
@georgeweiler georgeweiler added the team-ramp issues related to Ramp features label Sep 30, 2025
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Android Scrolling Bug Reintroduced in FlatList

Removing removeClippedSubviews={false}, scrollEnabled, and nestedScrollEnabled from the FlatList in the RegionSelectorModal reintroduces a previously fixed Android scrolling bug. These props are crucial for proper scrolling and preventing item clipping when the FlatList is nested within a BottomSheet on Android.

app/components/UI/Ramp/Deposit/Views/Modals/RegionSelectorModal/RegionSelectorModal.tsx#L198-L209

</View>
<FlatList
ref={listRef}
style={styles.list}
data={dataSearchResults}
renderItem={renderRegionItem}
extraData={selectedRegion?.isoCode}
keyExtractor={(item) => item?.isoCode}
ListEmptyComponent={renderEmptyList}
keyboardDismissMode="none"
keyboardShouldPersistTaps="always"
/>

Fix in Cursor Fix in Web


@georgeweiler georgeweiler changed the title Revert "fix(deposit): fixes android region select bug (#17284)" fix: fixes android region select bug (#17284) Sep 30, 2025
@georgeweiler georgeweiler changed the title fix: fixes android region select bug (#17284) fix: revert fixes android region select bug (#17284) Sep 30, 2025
@wachunei wachunei changed the title fix: revert fixes android region select bug (#17284) chore(deposit): revert fixes android region select bug (#17284) Sep 30, 2025
@georgeweiler georgeweiler removed the no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed label Sep 30, 2025
@georgeweiler georgeweiler added this pull request to the merge queue Oct 1, 2025
Merged via the queue into main with commit 6e1de04 Oct 1, 2025
115 of 124 checks passed
@georgeweiler georgeweiler deleted the revert-android-region-select-bug branch October 1, 2025 11:06
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2025
@metamaskbot metamaskbot added the release-7.57.0 Issue or pull request that will be included in release 7.57.0 label Oct 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed QA testing has been completed and passed release-7.57.0 Issue or pull request that will be included in release 7.57.0 Run Smoke E2E Requires smoke E2E testing size-M team-ramp issues related to Ramp features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants