react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

ScrollView refresh control gesture when released outside of the screen bounds doesn't work the same as React Native ScrollView

Open brentvatne opened this issue 7 years ago • 7 comments

Demonstrated in this gif. First, I pull to refresh with the ScrollView exported from react-native. Next, I pull to refresh with the ScrollView exported from react-native-gesture-handler. Each time I release the gesture outside of the bounds of the screen of the device. Notice that with the react-native ScrollView that when I release, the refresh control animation begins, but it does not when I release with the react-native-gesture-handler ScrollView.

scrollview

Repro: https://snack.expo.io/@notbrent/vigorous-ice-cream. The issue seems to be that onRefresh never fires.

brentvatne avatar Apr 12 '19 22:04 brentvatne

@brentvatne have you managed to solve this? I have same situation I have scrollview filled with items and on pull to refresh I clear those items and RefreshControl is visible. But when I scroll to bottom and press button that call same action RefreshControl is not visible until I touch and pull down a little bit.

vvusts avatar Jun 03 '19 11:06 vvusts

I also have a problem scrolling freezes the problem is on certain android devices I can send videos if you want, maybe inside core componnet of react native

aznoisib avatar Jul 16 '19 22:07 aznoisib

I haven't, I've just been using react-native's ScrollView instead for now

brentvatne avatar Jul 19 '19 18:07 brentvatne

This bug is not just a scrollview display, all the scrolling components freeze

Tested on react native app

  1. expo
  2. reqct native paper
  3. codepad (my experiment app)

issues: yes

tested on native mobile app

  1. android example

issues: no

video sample 1 https://www.dropbox.com/s/5mh8aje1cv0e7q6/mobizen_20190720_125215.mp4?dl=0

sample videos 2 https://www.dropbox.com/s/z5eupip3s9ozmqa/mobizen_20190720_125825.mp4?dl=0

Device info https://www.dropbox.com/s/4mn6tswvlums1hm/Screenshot_Setelan_20190720-124232.png?dl=0

aznoisib avatar Jul 20 '19 13:07 aznoisib

Experiencing this as well using version ~1.5.2

harrisrobin avatar Dec 20 '19 10:12 harrisrobin

Still experiencing this in 1.6.1

Evan-Younan avatar May 19 '20 18:05 Evan-Younan

It seems like this has been fixed on the native side. After working on an unrelated issue, I decided to update some AndroidX native packages under app/build/build.gradle:

implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"

This seems to have fixed the issue for me.

Evan-Younan avatar Jul 20 '20 18:07 Evan-Younan