Closed j1mbl3s closed 4 years ago
A simple solution that I can think of would be to allow hooks to the onScrollBeginDrag()
method (and to other ScrollView
props that are defined) by allowing the user to set their own onScrollBeginDrag
prop and calling like so:
src/components/pages/index.js
...
onScrollBeginDrag() {
this.scrollState = 0;
this.props.onScrollBeginDrag();
}
...
This doesn't necessarily fix this problem but would allow users to potentially fix it themselves and add some nice functionality.
Thanks for issue! Looks like keyboardDismissMode
is not working on Android at all for this moment, as described in facebook/react-native#23364. I've added onScrollStart
callback and released it in 0.9.0
.
Didn't realize this was an issue with RN's ScrollView
itself. Thanks!
We want to dismiss the keyboard when scrolling to another page. It seems that setting the
keyboardDismissMode
prop to'on-drag'
, for theScrollView
, doesn't do anything. UsingonScrollEnd
prop is not what we want, because we allow other components to focus after using thescrollToPage(page)
method -onScrollEnd={() => Keyboard.dismiss()}
results in unwanted behavior. Edit: Using react-native 0.60.5