question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

in scrollView, onResponderRelease Event not fired on android

See original GitHub issue

Description

in scrollView, onResponderRelease Event not fired on android

but it works nicely on ios.

Reproduction

<ScrollView ref={(ref) => this._scrollView = ref} scrollEnabled={true} showsVerticalScrollIndicator={false}
                          onScroll={(evt) => this.handleScroll(evt)} scrollEventThrottle={200}
                          onResponderRelease={(evt) => {console.log('release')}}
              >
blah blah blah
</ScrollView>

the above code works nice on ios. (logged on console correctly)

but it doesn’t fire on android.

Solution

in scrollView, onResponderRelease event fire on android

Additional Information

  • react-native-cli: 2.0.1
  • react-native: 0.40.0
  • Platform: android(6.0.0)
  • Operating System: mac os(10.12.3)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jukbencommented, Dec 11, 2017

I’m having the same issue. React Native: 0.49.3

According to documentation (it’s documented prop on View thus ScrollView), it should work.

0reactions
tsaohucncommented, Mar 9, 2018

Me Too

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReactNative onResponderRelease doesn't work on Android
I tried to use ScrollView's onResponderRelease event on an android device, but it dosen't work fine. Code like this:
Read more >
scrolleventthrottle android - You.com | The search engine you control.
but it doesn't fire on android. Solution. in scrollView, onResponderRelease event fire on android. Additional Information. react-native-cli: 2.0.1; react-native ...
Read more >
Common bugs in React Native ScrollView and how to fix them
The first and most common mistake of using ScrollView is not ... which controls how often the scroll event will be fired while...
Read more >
View - React Native
This event is fired immediately once the layout has been calculated, but the new layout may not yet be reflected on the screen...
Read more >
The Basics of React Native Gestures | by evening kid - Medium
When a user's touch is moving on the screen, every move event will be fired through onResponderMove . When it's over, it's onResponderRelease...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found