-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore(deposit): revert fixes android region select bug (#17284) #20539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit d4a5f6f.
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. |
|
There was a problem hiding this 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
Lines 198 to 209 in 8fc31d8
</View> | |
<FlatList | |
ref={listRef} | |
style={styles.list} | |
data={dataSearchResults} | |
renderItem={renderRegionItem} | |
extraData={selectedRegion?.isoCode} | |
keyExtractor={(item) => item?.isoCode} | |
ListEmptyComponent={renderEmptyList} | |
keyboardDismissMode="none" | |
keyboardShouldPersistTaps="always" | |
/> |
Description
This reverts commit d4a5f6f.
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
Screenshots/Recordings
Before
After
screen-20250930-094629.mp4
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Refactors
RegionSelectorModal
to useListItemSelect
for region rows, simplifies styles (removes theme-based item states, adjusts padding), and drops extra FlatList props with snapshots updated.RegionSelectorModal.tsx
withListItemSelect
(usesisSelected
,disabled
, built-in selection visuals).TouchableWithoutFeedback
+ manual selected/disabled styling.FlatList
props (removesremoveClippedSubviews
,scrollEnabled
,nestedScrollEnabled
).RegionSelectorModal.styles.ts
):selectedItem
/disabledItem
rules.listItem
padding (paddingVertical: 8
).Written by Cursor Bugbot for commit 8fc31d8. This will update automatically on new commits. Configure here.