-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(ramp): use ScrollView from react-native-gesture-handler in PaymentMethodSelectorModal #24188
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
…dSelectorModal Use ScrollView from react-native-gesture-handler instead of react-native to fix scrolling issues inside the BottomSheet component.
|
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe change is a simple import swap - switching ScrollView from 'react-native' to 'react-native-gesture-handler'. This is a common fix for gesture handling issues when ScrollView is nested inside modals that use gesture handlers. The change is in the PaymentMethodSelectorModal component which is part of the Ramp/Aggregator flow (on/off ramp - buy/sell crypto functionality). The snapshot changes confirm this is purely a UI implementation detail change - the new ScrollView adds gesture handler props (handlerTag, handlerType, onGestureHandlerEvent, onGestureHandlerStateChange) but the visual output and functionality remain the same. This is a low-risk change because:
Only SmokeRamps tag is needed as this directly affects the ramp (buy/sell) payment method selection flow. |
|
bugbot run |
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.
✅ Bugbot reviewed your changes and found no bugs!
|



Description
The
ScrollViewinPaymentMethodSelectorModalwas imported fromreact-nativeinstead ofreact-native-gesture-handler, causing the scroll functionality to not work when used inside aBottomSheetcomponent.This fix changes the import source to use
ScrollViewfromreact-native-gesture-handler, which is required for proper gesture handling and scrolling within bottom sheets that use gesture handlers.Changelog
CHANGELOG entry: Fixed payment method selector modal scroll not working
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
pm_before.mov
After
pm_after.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Switches
PaymentMethodSelectorModalto useScrollViewfromreact-native-gesture-handlerand updates snapshots accordingly.ScrollViewimport inapp/components/UI/Ramp/Aggregator/components/PaymentMethodSelectorModal/PaymentMethodSelectorModal.tsxfromreact-nativetoreact-native-gesture-handlerfor proper scrolling insideBottomSheet..../PaymentMethodSelectorModal/__snapshots__/PaymentMethodSelectorModal.test.tsx.snapto reflectRCTScrollViewgesture-handler props.Written by Cursor Bugbot for commit 30a37e0. This will update automatically on new commits. Configure here.