in scrollView, onResponderRelease Event not fired on android
See original GitHub issueDescription
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:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
Me Too