You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using touchables in scrolling views like ScrollView or FlatList the onPress handler is not called when the view is scrolled.
Expected behavior
onPress handler to be called.
Screenshots/Recordings
screen-20250806-143117.mp4
Steps to reproduce
Go to Deposit
Open the token selector
Scroll through the list and try to press a token while the list is scrolled.
Error messages or log output
Detection stage
During release testing
Version
7.53.0
Build type
None
Device
Android Pixel 8
Operating system
Android
Additional context
While investigating and with some context on the bug linked below, I realized using the touchable components from react-native-gesture-handler solve the issue. This might be related to the new architecture as mentioned in the react-native repo bug.
Describe the bug
When using touchables in scrolling views like
ScrollVieworFlatListtheonPresshandler is not called when the view is scrolled.Expected behavior
onPresshandler to be called.Screenshots/Recordings
screen-20250806-143117.mp4
Steps to reproduce
Error messages or log output
Detection stage
During release testing
Version
7.53.0
Build type
None
Device
Android Pixel 8
Operating system
Android
Additional context
While investigating and with some context on the bug linked below, I realized using the touchable components from
react-native-gesture-handlersolve the issue. This might be related to the new architecture as mentioned in the react-native repo bug.Related bug from react native repo: facebook/react-native#34999
Related bug reported earlier on MetaMask Mobile: #17269
The fix for this bug was replacing the component with
react-native-gesture-handlerhttps://github.com/MetaMask/metamask-mobile/pull/17284/files#diff-aceff0f01a25d29e371b8eaefbec0ad66977cdfbdf3bd36f9442a2918b7fc5dfR5Severity
No response