Closed vldkhh closed 11 months ago
@johnsmith-gooddollar @sirpy point two, about the bugging scrolling (around the cross-over point where it minizimes the header). any idea how to solve this? Maybe this seems related: https://github.com/facebook/react-native/issues/32696 About the onMomentum being fired multiple times.
I tried adding debounce like this in dashboard handleScrollEnd:
const handleScrollEnd = useCallback(
debounce(({ nativeEvent }) => {
const scrollPosition = nativeEvent.contentOffset.y
const { minScrollRequiredISH, scrollPositionGap, isFeedSizeEnough } = scrollData
const scrollPositionISH = scrollPosition + scrollPositionGap
setHeaderLarge(!isFeedSizeEnough || scrollPositionISH < minScrollRequiredISH)
}, 200),
[scrollData, setHeaderLarge],
But then it loses the nativeEvent context (undefined)
never mind, found the useDebounce hook a couple of lines above... testing now
verified on prod
[BUG, Android] UI bugs on Android
[x] 1. Need to align buttons on the pending tx card (web&Android) Private Zenhub Image
[x] 2. During the slow scrolling feed the profile is jumping
Private Zenhub Video
Private Zenhub Video